diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-08-03 03:09:56 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-08-03 03:09:56 (GMT) |
commit | b0fc9c4d0af00e002a6a9b43563c447281313950 (patch) | |
tree | 91523356c4261e4174a6f1db28edc1d7397e98f3 /Lib | |
parent | 539b6c41ffe5962af72ab394d87ded296ce0d19a (diff) | |
parent | 2b6ee286309bde403c9493e2c75d35c4f5b5abcb (diff) | |
download | cpython-b0fc9c4d0af00e002a6a9b43563c447281313950.zip cpython-b0fc9c4d0af00e002a6a9b43563c447281313950.tar.gz cpython-b0fc9c4d0af00e002a6a9b43563c447281313950.tar.bz2 |
merge heads
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 589f482..394e210 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -58,6 +58,7 @@ class TestSupport(unittest.TestCase): mod_filename = TESTFN + '.py' with open(mod_filename, 'w') as f: print('foo = 1', file=f) + sys.path.insert(0, os.curdir) try: mod = __import__(TESTFN) self.assertIn(TESTFN, sys.modules) @@ -65,6 +66,7 @@ class TestSupport(unittest.TestCase): support.forget(TESTFN) self.assertNotIn(TESTFN, sys.modules) finally: + del sys.path[0] support.unlink(mod_filename) def test_HOST(self): |