/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Vincent Ladeuil
  • Date: 2009-09-03 08:10:23 UTC
  • mto: (4669.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4670.
  • Revision ID: v.ladeuil+lp@free.fr-20090903081023-jxa59liaax1k5ba4
Fixed as per Andrew's review.

* bzrlib/tests/test_selftest.py:
(TestTestCase.test_trace_nesting): Call addCleanup asap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1493
1493
        outer_test = TestTestCase("outer_child")
1494
1494
        result = self.make_test_result()
1495
1495
        outer_test.run(result)
 
1496
        self.addCleanup(osutils.delete_any, outer_test._log_file_name)
1496
1497
        self.assertEqual(original_trace, bzrlib.trace._trace_file)
1497
 
        self.addCleanup(osutils.delete_any, outer_test._log_file_name)
1498
1498
 
1499
1499
    def method_that_times_a_bit_twice(self):
1500
1500
        # call self.time twice to ensure it aggregates