summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-03 03:09:56 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-03 03:09:56 (GMT)
commitb0fc9c4d0af00e002a6a9b43563c447281313950 (patch)
tree91523356c4261e4174a6f1db28edc1d7397e98f3 /Lib
parent539b6c41ffe5962af72ab394d87ded296ce0d19a (diff)
parent2b6ee286309bde403c9493e2c75d35c4f5b5abcb (diff)
downloadcpython-b0fc9c4d0af00e002a6a9b43563c447281313950.zip
cpython-b0fc9c4d0af00e002a6a9b43563c447281313950.tar.gz
cpython-b0fc9c4d0af00e002a6a9b43563c447281313950.tar.bz2
merge heads
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_support.py2
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):