Rev 3205: Fiz last leaking tmp dir. in file:///v/home/vila/src/bzr/bugs/123363-tmp-pollution/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue Jan 29 15:58:29 GMT 2008


At file:///v/home/vila/src/bzr/bugs/123363-tmp-pollution/

------------------------------------------------------------
revno: 3205
revision-id:v.ladeuil+lp at free.fr-20080129155823-1ext6bebc09p9rvx
parent: v.ladeuil+lp at free.fr-20080129151631-vqjd13tb405mobx6
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 123363-tmp-pollution
timestamp: Tue 2008-01-29 16:58:23 +0100
message:
  Fiz last leaking tmp dir.
  
  * bzrlib/tests/test_diff.py:
  (TestDiffFromTool.test_from_string): Split the test and cleanup.
modified:
  bzrlib/tests/test_diff.py      testdiff.py-20050727164403-d1a3496ebb12e339
-------------- next part --------------
=== modified file 'bzrlib/tests/test_diff.py'
--- a/bzrlib/tests/test_diff.py	2008-01-03 19:12:30 +0000
+++ b/bzrlib/tests/test_diff.py	2008-01-29 15:58:23 +0000
@@ -1246,7 +1246,10 @@
         self.addCleanup(diff_obj.finish)
         self.assertEqual(['diff', '%(old_path)s', '%(new_path)s'],
             diff_obj.command_template)
+
+    def test_from_string_u5(self):
         diff_obj = DiffFromTool.from_string('diff -u\\ 5', None, None, None)
+        self.addCleanup(diff_obj.finish)
         self.assertEqual(['diff', '-u 5', '%(old_path)s', '%(new_path)s'],
                          diff_obj.command_template)
         self.assertEqual(['diff', '-u 5', 'old-path', 'new-path'],



More information about the bazaar-commits mailing list