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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46719af05af7bd016b186ddbad74cd4a22b4aeb1;p=python Try to make test_import a bit more robust --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index cf17c9615d..95a5f48fce 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)