]> granicus.if.org Git - python/commitdiff
Try to make test_import a bit more robust
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Mar 2011 18:05:02 +0000 (19:05 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Mar 2011 18:05:02 +0000 (19:05 +0100)
Lib/test/test_import.py

index cf17c9615dc66fad3df43104b2d15336fb015e99..95a5f48fce36f073b8d66b22197458a7e2ee1238 100644 (file)
@@ -30,6 +30,9 @@ def remove_files(name):
 
 class ImportTests(unittest.TestCase):
 
+    def setUp(self):
+        remove_files(TESTFN)
+
     def tearDown(self):
         unload(TESTFN)