summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_import.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index c7ab753..9c2f16f 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -2,6 +2,9 @@ from test_support import TESTFN
import os
import random
+import sys
+
+sys.path.insert(0, os.curdir)
source = TESTFN + ".py"
pyc = TESTFN + ".pyc"
@@ -42,3 +45,5 @@ finally:
os.unlink(pyo)
except os.error:
pass
+
+del sys.path[0]