~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-15 08:22:22 UTC
  • mfrom: (2485.6.9 test-cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20070615082222-98j9j9nbl6p2dx0m
Speed up tests by deleting test directories immediately after they're used, and put them in  (mbp, spiv)

Show diffs side-by-side

added added

removed removed

Lines of Context:
970
970
        def skipping_test():
971
971
            raise TestSkipped('test intentionally skipped')
972
972
 
973
 
        runner = TextTestRunner(stream=self._log_file, keep_output=True)
 
973
        runner = TextTestRunner(stream=self._log_file)
974
974
        test = unittest.FunctionTestCase(skipping_test)
975
975
        result = self.run_test_runner(runner, test)
976
976
        self.assertTrue(result.wasSuccessful())
989
989
            def cleanup(self):
990
990
                self.counter -= 1
991
991
 
992
 
        runner = TextTestRunner(stream=self._log_file, keep_output=True)
 
992
        runner = TextTestRunner(stream=self._log_file)
993
993
        test = SkippedSetupTest('test_skip')
994
994
        result = self.run_test_runner(runner, test)
995
995
        self.assertTrue(result.wasSuccessful())
1009
1009
            def cleanup(self):
1010
1010
                self.counter -= 1
1011
1011
 
1012
 
        runner = TextTestRunner(stream=self._log_file, keep_output=True)
 
1012
        runner = TextTestRunner(stream=self._log_file)
1013
1013
        test = SkippedTest('test_skip')
1014
1014
        result = self.run_test_runner(runner, test)
1015
1015
        self.assertTrue(result.wasSuccessful())