diff options
author | Guido van Rossum <guido@python.org> | 2007-06-12 23:30:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-12 23:30:11 (GMT) |
commit | da5b8f2d28f2f7ce47be5d88244eaefc66f7de3e (patch) | |
tree | f3b0ab1f90be8ba18b1cefdb660cebd95c0f70d9 /runtests.sh | |
parent | 2d5c219fe09eacf81c139e5af9114fbbdd093d85 (diff) | |
download | cpython-da5b8f2d28f2f7ce47be5d88244eaefc66f7de3e.zip cpython-da5b8f2d28f2f7ce47be5d88244eaefc66f7de3e.tar.gz cpython-da5b8f2d28f2f7ce47be5d88244eaefc66f7de3e.tar.bz2 |
Rip out the file object's implementation.
Fixed test_import.py while I was at it.
However, there's still a problem in import.c -- get_file() can leak a
FILE struct (not a file descriptor though). I'm not sure how to fix
this; closing the FILE* closes the file descriptor, and that's the
wrong thing to do when there's still a Python file object keeping the
file descriptor open. I also would rather not mess with dup(), as it
won't port to Windows.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtests.sh b/runtests.sh index 7372d8e..ddc00b0 100755 --- a/runtests.sh +++ b/runtests.sh @@ -24,8 +24,8 @@ mkdir -p OUT >BAD >SKIPPED -# The -uall flag (edit this file to change). -UALL="-uall" +# The -u flag (edit this file to change). +UFLAG="-unetwork" # Compute the list of tests to run. case $# in @@ -41,7 +41,7 @@ esac for T in $TESTS do echo -n $T - if $PYTHON Lib/test/regrtest.py $UALL $T >OUT/$T.out 2>&1 + if $PYTHON Lib/test/regrtest.py $UFLAG $T >OUT/$T.out 2>&1 then if grep -q "1 test skipped:" OUT/$T.out then @@ -55,6 +55,6 @@ do echo " BAD" echo $T >>BAD echo "---------- Re-running test in verbose mode ----------" >>OUT/$T - $PYTHON Lib/test/regrtest.py -v $UALL $T >>OUT/$T.out 2>&1 + $PYTHON Lib/test/regrtest.py -v $UFLAG $T >>OUT/$T.out 2>&1 fi done |