Merge lp:~gz/bzr/lazy_hook_test_cleanup_785054 into lp:bzr
Status: | Work in progress |
---|---|
Proposed branch: | lp:~gz/bzr/lazy_hook_test_cleanup_785054 |
Merge into: | lp:bzr |
Diff against target: |
161 lines (+144/-0) 1 file modified
bzrlib/tests/test_selftest.py (+144/-0) |
To merge this branch: | bzr merge lp:~gz/bzr/lazy_hook_test_cleanup_785054 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
bzr-core | Pending | ||
Review via email: mp+61586@code.launchpad.net |
Description of the change
This branch isn't ready to land (it doesn't fix the bug), but I need some help working out what's going on with the hooks isolation logic.
The branch is motivated by this mistake in the existing code, which looks like a simple fix:
=== modified file 'bzrlib/
--- old/bzrlib/
+++ new/bzrlib/
@@ -1699,7 +1699,7 @@
def _restoreHooks(
for klass, (name, hooks) in self._preserved
- hooks._lazy_hooks = self._preserved
+ bzrlib.
def knownFailure(self, reason):
"""This test has failed for some known reason."""
As the _preserved_
Not restoring the dictionary doesn't seem to break much in practice at the moment, but is another testcase lifetime complication.
Unmerged revisions
- 5896. By Martin Packman
-
Split hook isolation tests into several cases in new class
- 5895. By Martin Packman
-
Add test for broken selftest lazy lock cleanup
Oh hmm, I thought I commented here but we mostly discussed on IRC, don't hesitate to ping if you need more help.