~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

Ensure all inner tests in TestUncollectedWarnings are run

Show diffs side-by-side

added added

removed removed

Lines of Context:
3346
3346
            gc.disable()
3347
3347
        try:
3348
3348
            tests.selftest(test_suite_factory=self._get_suite, stream=sio,
3349
 
                **kwargs)
 
3349
                stop_on_failure=False, **kwargs)
3350
3350
        finally:
3351
3351
            if gc_on:
3352
3352
                gc.enable()
3368
3368
        self.assertNotContainsRe(out, "test_skip")
3369
3369
 
3370
3370
    def test_random_seed(self):
3371
 
        self._run_selftest_with_suite(random_seed="now")
 
3371
        out = self._run_selftest_with_suite(random_seed="now")
 
3372
        self.assertContainsRe(out, "Ran 4 tests in \d+.\d+s")
3372
3373
 
3373
3374
    def test_matching_tests_first(self):
3374
3375
        self._run_selftest_with_suite(matching_tests_first=True,