~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/TestUtil.py

Tweaks and comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        if stream is None:
90
90
            stream = result.decorated._stream
91
91
        stored_count = 0
 
92
        count_stored_tests = getattr(result, "_count_stored_tests", int)
92
93
        from bzrlib.tests import selftest_debug_flags
93
94
        notify = "uncollected_cases" in selftest_debug_flags
94
95
        while tests:
96
97
                self._tests = reversed(tests)
97
98
                break
98
99
            case = _run_and_collect_case(tests.pop(), result)()
99
 
            new_stored_count = getattr(result, "_count_stored_tests", int)()
 
100
            new_stored_count = count_stored_tests()
100
101
            if case is not None and isinstance(case, unittest.TestCase):
101
102
                if stored_count == new_stored_count and notify:
102
103
                    # Testcase didn't fail, but somehow is still alive