Merge lp:~spiv/bzr/traceback-accumulation-2.2 into lp:bzr/2.2
| Status: | Merged |
|---|---|
| Approved by: | Andrew Bennetts on 2010-09-17 |
| Approved revision: | 5092 |
| Merged at revision: | 5091 |
| Proposed branch: | lp:~spiv/bzr/traceback-accumulation-2.2 |
| Merge into: | lp:bzr/2.2 |
| Diff against target: |
81 lines (+16/-32) 2 files modified
NEWS (+4/-4) bzrlib/tests/__init__.py (+12/-28) |
| To merge this branch: | bzr merge lp:~spiv/bzr/traceback-accumulation-2.2 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pool | 2010-09-17 | Approve on 2010-09-17 | |
|
Review via email:
|
|||
Commit Message
Replace TestCase__copy__ hack with more direct workaround in clone_test.
Description of the Change
This is a more conservative workaround than the previous hack (which seems to mysteriously fail when sent to land in lp:bzr, but landed just fine in lp:bzr/2.2).
It removes the __copy__ method in favour of making clone_test explicitly reset just the details dict (given that the other mutable, shared attributes aren't causing us any grief).
| Andrew Bennetts (spiv) wrote : | # |
Yes, I agree it's cleaner. With hindsight I'm not sure why I didn't do this in the first place. :)
Thanks for the speedy review.
| Andrew Bennetts (spiv) wrote : | # |
sent to pqm by email
| Vincent Ladeuil (vila) wrote : | # |
Anonymous XXX tend to lost their value over time, this will be later fixed in trunk anyway right ?
| Andrew Bennetts (spiv) wrote : | # |
Vincent Ladeuil wrote:
> Anonymous XXX tend to lost their value over time, this will be later fixed in trunk anyway right ?
The goal is to fix this in testtools. Then we can remove this
workaround (and probably also remove 'clone_test' entirely in favour of
the testtools equivalent, clone_test_

+1, to my mind this is arguably a cleaner fix anyhow.