From: Guido van Rossum Date: Tue, 24 Oct 2000 17:16:32 +0000 (+0000) Subject: Insert the current directory to the front of sys.path -- and remove it X-Git-Tag: v2.1a1~828 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd6f4fba1bc66a18cc15d50ffdd33faedff5ac4c;p=python 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 c7ab75377a..9c2f16f1ff 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]