]> granicus.if.org Git - python/commitdiff
Insert the current directory to the front of sys.path -- and remove it
authorGuido van Rossum <guido@python.org>
Tue, 24 Oct 2000 17:16:32 +0000 (17:16 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 24 Oct 2000 17:16:32 +0000 (17:16 +0000)
at the end.  This fixes a problem where

python Lib/test/test_import.py

failed while "make test" succeeded.

Lib/test/test_import.py

index c7ab75377a82eee99dabb10583a3785021ae2afb..9c2f16f1ff52a4f109b1237f3fb9c19c4824c679 100644 (file)
@@ -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]