You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
For some 2.6 test PYTHON needs to be set to pytest
This commit is contained in:
@@ -7,9 +7,7 @@ SKIP_TESTS=(
|
|||||||
# assert 0 # shouldn't reach here.
|
# assert 0 # shouldn't reach here.
|
||||||
[test_shutil.py]=1
|
[test_shutil.py]=1
|
||||||
|
|
||||||
[test___all__.py]=1 # it fails on its own
|
|
||||||
[test___all__.py]=1 # it fails on its own
|
[test___all__.py]=1 # it fails on its own
|
||||||
[test_aepack.py]=1 # Fails on its own
|
|
||||||
[test_aepack.py]=1 # it fails on its own
|
[test_aepack.py]=1 # it fails on its own
|
||||||
[test_al.py]=1 # it fails on its own
|
[test_al.py]=1 # it fails on its own
|
||||||
[test_anydbm.py]=1 # it fails on its own
|
[test_anydbm.py]=1 # it fails on its own
|
||||||
@@ -59,7 +57,7 @@ SKIP_TESTS=(
|
|||||||
[test_ossaudiodev.py]=1 # it fails on its own
|
[test_ossaudiodev.py]=1 # it fails on its own
|
||||||
|
|
||||||
[test_pep277.py]=1 # it fails on its own
|
[test_pep277.py]=1 # it fails on its own
|
||||||
[test_pyclbr.py]=1 # Investigate
|
[test_pyclbr.py]=1 # it fails on its own
|
||||||
[test_py3kwarn.py]=1 # it fails on its own
|
[test_py3kwarn.py]=1 # it fails on its own
|
||||||
|
|
||||||
[test_scriptpackages.py]=1 # it fails on its own
|
[test_scriptpackages.py]=1 # it fails on its own
|
||||||
@@ -85,7 +83,6 @@ SKIP_TESTS=(
|
|||||||
|
|
||||||
[test_zipimport_support.py]=1
|
[test_zipimport_support.py]=1
|
||||||
[test_zipfile64.py]=1 # Skip Long test
|
[test_zipfile64.py]=1 # Skip Long test
|
||||||
[test_zlib.py]=1 #
|
|
||||||
# .pyenv/versions/2.6.9/lib/python2.6/lib2to3/refactor.pyc
|
# .pyenv/versions/2.6.9/lib/python2.6/lib2to3/refactor.pyc
|
||||||
# .pyenv/versions/2.6.9/lib/python2.6/pyclbr.pyc
|
# .pyenv/versions/2.6.9/lib/python2.6/pyclbr.pyc
|
||||||
)
|
)
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
me=${BASH_SOURCE[0]}
|
me=${BASH_SOURCE[0]}
|
||||||
|
|
||||||
|
# Note: for 2.6 sometimes we need to set PYTHON=pytest
|
||||||
|
PYTHON=${PYTHON:-python}
|
||||||
|
|
||||||
typeset -i BATCH=${BATCH:-0}
|
typeset -i BATCH=${BATCH:-0}
|
||||||
if (( ! BATCH )) ; then
|
if (( ! BATCH )) ; then
|
||||||
isatty=$(/usr/bin/tty 2>/dev/null)
|
isatty=$(/usr/bin/tty 2>/dev/null)
|
||||||
@@ -191,7 +194,7 @@ for file in $files; do
|
|||||||
if [ ! -r $file ]; then
|
if [ ! -r $file ]; then
|
||||||
echo "Skipping test $file -- not readable. Does it exist?"
|
echo "Skipping test $file -- not readable. Does it exist?"
|
||||||
continue
|
continue
|
||||||
elif ! python $file >/dev/null 2>&1 ; then
|
elif ! $PYTHON $file >/dev/null 2>&1 ; then
|
||||||
echo "Skipping test $file -- it fails on its own"
|
echo "Skipping test $file -- it fails on its own"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@@ -214,7 +217,7 @@ for file in $files; do
|
|||||||
rc=$?
|
rc=$?
|
||||||
if (( rc == 0 )) ; then
|
if (( rc == 0 )) ; then
|
||||||
echo ========== $(date +%X) Running $file ===========
|
echo ========== $(date +%X) Running $file ===========
|
||||||
timeout_cmd python $file
|
timeout_cmd $PYTHON $file
|
||||||
rc=$?
|
rc=$?
|
||||||
else
|
else
|
||||||
echo ======= Skipping $file due to compile/decompile errors ========
|
echo ======= Skipping $file due to compile/decompile errors ========
|
||||||
|
Reference in New Issue
Block a user