diff options
author | Guido van Rossum <guido@python.org> | 2000-10-24 17:16:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-10-24 17:16:32 (GMT) |
commit | bd6f4fba1bc66a18cc15d50ffdd33faedff5ac4c (patch) | |
tree | 3c668a3ca2724b8a240a8769ed95038ddb9a64e0 /Lib | |
parent | 0702507ea2e6a6a2c36430cc4ec6c824373672c7 (diff) | |
download | cpython-bd6f4fba1bc66a18cc15d50ffdd33faedff5ac4c.zip cpython-bd6f4fba1bc66a18cc15d50ffdd33faedff5ac4c.tar.gz cpython-bd6f4fba1bc66a18cc15d50ffdd33faedff5ac4c.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_import.py | 5 |
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] |