Insert the current directory to the front of sys.path -- and remove it
at the end. This fixes a problem where
python Lib/test/test_import.py
failed while "make test" succeeded.
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 @@
import os
import random
+import sys
+
+sys.path.insert(0, os.curdir)
source = TESTFN + ".py"
pyc = TESTFN + ".pyc"
@@ -42,3 +45,5 @@
os.unlink(pyo)
except os.error:
pass
+
+del sys.path[0]