From: Antoine Pitrou Date: Mon, 21 Mar 2011 18:05:02 +0000 (+0100) Subject: Try to make test_import a bit more robust X-Git-Tag: v3.2.1b1~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46719af05af7bd016b186ddbad74cd4a22b4aeb1;p=thirdparty%2FPython%2Fcpython.git Try to make test_import a bit more robust --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index cf17c9615dc6..95a5f48fce36 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -30,6 +30,9 @@ def remove_files(name): class ImportTests(unittest.TestCase): + def setUp(self): + remove_files(TESTFN) + def tearDown(self): unload(TESTFN)