Rev 4661: Cleanup testbzXXXXXX.log leaks in /tmp during selftest. in file:///home/vila/src/bzr/experimental/test-isolation/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Sep 2 09:43:44 BST 2009


At file:///home/vila/src/bzr/experimental/test-isolation/

------------------------------------------------------------
revno: 4661
revision-id: v.ladeuil+lp at free.fr-20090902084344-q2yw9enwayqkwsrm
parent: v.ladeuil+lp at free.fr-20090902082627-cit8vm6tefu9hwk2
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: test-isolation
timestamp: Wed 2009-09-02 10:43:44 +0200
message:
  Cleanup testbzXXXXXX.log leaks in /tmp during selftest.
  
  
  * bzrlib/tests/test_selftest.py:
  (TestTestCase.test_trace_nesting): Cleanup log file.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py	2009-08-26 23:25:28 +0000
+++ b/bzrlib/tests/test_selftest.py	2009-09-02 08:43:44 +0000
@@ -1494,6 +1494,7 @@
         result = self.make_test_result()
         outer_test.run(result)
         self.assertEqual(original_trace, bzrlib.trace._trace_file)
+        self.addCleanup(osutils.delete_any, outer_test._log_file_name)
 
     def method_that_times_a_bit_twice(self):
         # call self.time twice to ensure it aggregates



More information about the bazaar-commits mailing list