Rev 3304: Fix test bug revealed when run alone. in http://code.launchpad.net/%7Ev-ladeuil/bzr/faster-selftest

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Mar 24 14:39:38 GMT 2008


At http://code.launchpad.net/%7Ev-ladeuil/bzr/faster-selftest

------------------------------------------------------------
revno: 3304
revision-id: v.ladeuil+lp at free.fr-20080324143902-nim8ieiiyxig36lh
parent: v.ladeuil+lp at free.fr-20080324143546-l68ctb0pa3ewgroa
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: test-suite-fixes
timestamp: Mon 2008-03-24 15:39:02 +0100
message:
  Fix test bug revealed when run alone.
  
  * bzrlib/tests/test_lazy_import.py:
  (TestScopeReplacer.test_setattr_replaces): Don't rely on other
  tests calling TestClass.use_actions
modified:
  bzrlib/tests/test_lazy_import.py test_lazy_import.py-20060910203832-f77c54gf3n232za0-2
-------------- next part --------------
=== modified file 'bzrlib/tests/test_lazy_import.py'
--- a/bzrlib/tests/test_lazy_import.py	2007-11-09 02:24:44 +0000
+++ b/bzrlib/tests/test_lazy_import.py	2008-03-24 14:39:02 +0000
@@ -156,6 +156,8 @@
         An object should appear in globals() by constructing a ScopeReplacer,
         and it will be replaced with the real object upon the first request.
         """
+        actions = []
+        TestClass.use_actions(actions)
         def factory(replacer, scope, name):
             return TestClass()
         try:



More information about the bazaar-commits mailing list