Rev 2425: Also clear SmartTCPServer hooks from TestCase._clear_hooks in http://sourcefrog.net/bzr/benchmarks

Martin Pool mbp at sourcefrog.net
Tue Apr 17 08:38:48 BST 2007


At http://sourcefrog.net/bzr/benchmarks

------------------------------------------------------------
revno: 2425
revision-id: mbp at sourcefrog.net-20070417073847-0daboq350rqofp73
parent: mbp at sourcefrog.net-20070417065102-zabhms9y28q2ik00
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: benchmarks
timestamp: Tue 2007-04-17 17:38:47 +1000
message:
  Also clear SmartTCPServer hooks from TestCase._clear_hooks
modified:
  bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2007-04-17 06:51:02 +0000
+++ b/bzrlib/tests/__init__.py	2007-04-17 07:38:47 +0000
@@ -765,6 +765,8 @@
         # this list of hooks must be kept in sync with the defaults
         # in branch.py
         bzrlib.branch.Branch.hooks = bzrlib.branch.BranchHooks()
+        bzrlib.smart.server.SmartTCPServer.hooks = \
+            bzrlib.smart.server.SmartServerHooks()
 
     def _silenceUI(self):
         """Turn off UI for duration of test"""




More information about the bazaar-commits mailing list