diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-10-05 15:37:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-10-05 15:37:41 (GMT) |
commit | 047b7ae56628717160eb75e379e2bfdaa59dfc18 (patch) | |
tree | 5fce44a78310c538882fca71eea5e99a5f7b81c8 /Lib/test/test_import.py | |
parent | 8f437aac068e13fe8418bb0374baf4395e7b4994 (diff) | |
download | cpython-047b7ae56628717160eb75e379e2bfdaa59dfc18.zip cpython-047b7ae56628717160eb75e379e2bfdaa59dfc18.tar.gz cpython-047b7ae56628717160eb75e379e2bfdaa59dfc18.tar.bz2 |
Issue #22390: Remove files created by tests
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r-- | Lib/test/test_import.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 781a159..b4842c5 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -1062,6 +1062,7 @@ class ImportTracebackTests(unittest.TestCase): # Issue #11619: The Python parser and the import machinery must not # encode filenames, especially on Windows pyname = script_helper.make_script('', TESTFN_UNENCODABLE, 'pass') + self.addCleanup(unlink, pyname) name = pyname[:-3] script_helper.assert_python_ok("-c", "mod = __import__(%a)" % name, __isolated=False) |