Commit 4d36eb08 authored by Brett Cannon's avatar Brett Cannon

A test was not guaranteeing cleanup in the face of an exception.

parent 094f2cfb
......@@ -163,9 +163,10 @@ class ImportTests(unittest.TestCase):
# Need to be able to load from current dir.
sys.path.append('')
try:
# This used to crash.
exec('import ' + module)
finally:
# Cleanup.
del sys.path[-1]
unlink(filename + 'c')
......
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