Commit 5d2e7acb authored by Guido van Rossum's avatar Guido van Rossum

Use python -E instead of undef PYTHONPATH.

parent 1fc1f7dd
...@@ -15,9 +15,6 @@ are written the names of the tests categorized by result. ...@@ -15,9 +15,6 @@ are written the names of the tests categorized by result.
Flags (arguments starting with '-') are passed transparently to Flags (arguments starting with '-') are passed transparently to
regrtest.py, except for -x, which is processed here." regrtest.py, except for -x, which is processed here."
# Reset PYTHONPATH to avoid alien influences on the tests.
unset PYTHONPATH
# Choose the Python binary. # Choose the Python binary.
case `uname` in case `uname` in
Darwin) PYTHON=./python.exe;; Darwin) PYTHON=./python.exe;;
...@@ -66,8 +63,11 @@ for T in $TESTS ...@@ -66,8 +63,11 @@ for T in $TESTS
do do
echo -n $T echo -n $T
if case $T in if case $T in
*curses*) echo; $PYTHON Lib/test/regrtest.py $FLAGS $T 2>OUT/$T.out;; *curses*)
*) $PYTHON Lib/test/regrtest.py $FLAGS $T >OUT/$T.out 2>&1;; 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 esac
then then
if grep -q "1 test skipped:" OUT/$T.out if grep -q "1 test skipped:" OUT/$T.out
......
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