]> granicus.if.org Git - python/commitdiff
Use python -E instead of undef PYTHONPATH.
authorGuido van Rossum <guido@python.org>
Wed, 22 Aug 2007 21:46:00 +0000 (21:46 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 22 Aug 2007 21:46:00 +0000 (21:46 +0000)
runtests.sh

index 5d31276a219f6d1d6729b8c6912db1b925aa8d4d..48b9858315b3f6554d06c334d50431dcc47ae3c6 100755 (executable)
@@ -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