summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-22 21:46:00 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-22 21:46:00 (GMT)
commita62b45c95daa1172c7411062372f0cc3827a292f (patch)
treee5fda1ec69db2533cd62f2e637318c739ae342a8
parenta65e94c1bf30259e0367d136054328c107ff41da (diff)
downloadcpython-a62b45c95daa1172c7411062372f0cc3827a292f.zip
cpython-a62b45c95daa1172c7411062372f0cc3827a292f.tar.gz
cpython-a62b45c95daa1172c7411062372f0cc3827a292f.tar.bz2
Use python -E instead of undef PYTHONPATH.
-rwxr-xr-xruntests.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtests.sh b/runtests.sh
index 5d31276..48b9858 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -15,9 +15,6 @@ are written the names of the tests categorized by result.
Flags (arguments starting with '-') are passed transparently to
regrtest.py, except for -x, which is processed here."
-# Reset PYTHONPATH to avoid alien influences on the tests.
-unset PYTHONPATH
-
# Choose the Python binary.
case `uname` in
Darwin) PYTHON=./python.exe;;
@@ -66,8 +63,11 @@ for T in $TESTS
do
echo -n $T
if case $T in
- *curses*) echo; $PYTHON Lib/test/regrtest.py $FLAGS $T 2>OUT/$T.out;;
- *) $PYTHON Lib/test/regrtest.py $FLAGS $T >OUT/$T.out 2>&1;;
+ *curses*)
+ echo
+ $PYTHON -E Lib/test/regrtest.py $FLAGS $T 2>OUT/$T.out
+ ;;
+ *) $PYTHON -E Lib/test/regrtest.py $FLAGS $T >OUT/$T.out 2>&1;;
esac
then
if grep -q "1 test skipped:" OUT/$T.out