~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

Merge up from 2.4-windows-lfstat

Show diffs side-by-side

added added

removed removed

Lines of Context:
749
749
        self.check_timing(ShortDelayTestCase('test_short_delay'),
750
750
                          r"^ +[0-9]+ms$")
751
751
 
752
 
    def _patch_get_bzr_source_tree(self):
753
 
        # Reading from the actual source tree breaks isolation, but we don't
754
 
        # want to assume that thats *all* that would happen.
755
 
        self.overrideAttr(bzrlib.version, '_get_bzr_source_tree', lambda: None)
756
 
 
757
752
    def _time_hello_world_encoding(self):
758
753
        """Profile two sleep calls
759
754
 
1178
1173
            ],
1179
1174
            lines[-3:])
1180
1175
 
1181
 
    def _patch_get_bzr_source_tree(self):
1182
 
        # Reading from the actual source tree breaks isolation, but we don't
1183
 
        # want to assume that thats *all* that would happen.
1184
 
        self._get_source_tree_calls = []
1185
 
        def new_get():
1186
 
            self._get_source_tree_calls.append("called")
1187
 
            return None
1188
 
        self.overrideAttr(bzrlib.version, '_get_bzr_source_tree',  new_get)
1189
 
 
1190
1176
    def test_verbose_test_count(self):
1191
1177
        """A verbose test run reports the right test count at the start"""
1192
1178
        suite = TestUtil.TestSuite([