Commit b6bfedfe authored by Antoine Pitrou's avatar Antoine Pitrou

Fix test_import failure when run multiple times.

(2.7-only)
parent 9a2a7c20
...@@ -263,7 +263,10 @@ class ImportTests(unittest.TestCase): ...@@ -263,7 +263,10 @@ class ImportTests(unittest.TestCase):
import imp import imp
sys.argv.insert(0, C()) sys.argv.insert(0, C())
""")) """))
script_helper.assert_python_ok(testfn) try:
script_helper.assert_python_ok(testfn)
finally:
unlink(testfn)
def test_bug7732(self): def test_bug7732(self):
source = TESTFN + '.py' source = TESTFN + '.py'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment