Kaydet (Commit) bd6f4fba authored tarafından Guido van Rossum's avatar Guido van Rossum

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.
üst 0702507e
...@@ -2,6 +2,9 @@ from test_support import TESTFN ...@@ -2,6 +2,9 @@ from test_support import TESTFN
import os import os
import random import random
import sys
sys.path.insert(0, os.curdir)
source = TESTFN + ".py" source = TESTFN + ".py"
pyc = TESTFN + ".pyc" pyc = TESTFN + ".pyc"
...@@ -42,3 +45,5 @@ finally: ...@@ -42,3 +45,5 @@ finally:
os.unlink(pyo) os.unlink(pyo)
except os.error: except os.error:
pass pass
del sys.path[0]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment