Rev 5753: Remove _patch_get_bzr_source_tree, which isn't called now that the benchmark code has been removed. in http://bazaar.launchpad.net/~jameinel/bzr/integration

John Arbash Meinel john at arbash-meinel.com
Mon Apr 4 11:39:32 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/integration

------------------------------------------------------------
revno: 5753
revision-id: john at arbash-meinel.com-20110404113925-2nyuwme8erqri5uw
parent: pqm at pqm.ubuntu.com-20110402231100-l6p99hxfe6722vir
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: integration
timestamp: Mon 2011-04-04 13:39:25 +0200
message:
  Remove _patch_get_bzr_source_tree, which isn't called now that the benchmark code has been removed.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py	2011-03-31 16:28:11 +0000
+++ b/bzrlib/tests/test_selftest.py	2011-04-04 11:39:25 +0000
@@ -749,11 +749,6 @@
         self.check_timing(ShortDelayTestCase('test_short_delay'),
                           r"^ +[0-9]+ms$")
 
-    def _patch_get_bzr_source_tree(self):
-        # Reading from the actual source tree breaks isolation, but we don't
-        # want to assume that thats *all* that would happen.
-        self.overrideAttr(bzrlib.version, '_get_bzr_source_tree', lambda: None)
-
     def _time_hello_world_encoding(self):
         """Profile two sleep calls
 
@@ -1178,15 +1173,6 @@
             ],
             lines[-3:])
 
-    def _patch_get_bzr_source_tree(self):
-        # Reading from the actual source tree breaks isolation, but we don't
-        # want to assume that thats *all* that would happen.
-        self._get_source_tree_calls = []
-        def new_get():
-            self._get_source_tree_calls.append("called")
-            return None
-        self.overrideAttr(bzrlib.version, '_get_bzr_source_tree',  new_get)
-
     def test_verbose_test_count(self):
         """A verbose test run reports the right test count at the start"""
         suite = TestUtil.TestSuite([



More information about the bazaar-commits mailing list