Skip to content

Commit 76039a2

Browse files
committed
Go over 2.6 excludes
1 parent 27dfb95 commit 76039a2

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

test/stdlib/2.6-exclude.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@ SKIP_TESTS=(
88
# [test_shutil.py]=1 # OK but needs PYTHON=pytest
99

1010
[test___all__.py]=1 # it fails on its own
11-
[test_aepack.py]=1 # it fails on its own
12-
[test_al.py]=1 # it fails on its own
13-
[test_anydbm.py]=1 # it fails on its own
14-
[test_applesingle.py]=1 # it fails on its own
15-
11+
[test_aepack.py]=1 # No module macostools
12+
[test_al.py]=1 # No module macostools
13+
[test_anydbm.py]=pytest
14+
[test_applesingle.py]=1 # No module macostools
1615
[test_bsddb185.py]=1 # it fails on its own
1716
[test_bsddb3.py]=1 # it fails on its own
18-
[test_bsddb.py]=1 # it fails on its own
17+
[test_bsddb.py]=1 # No module _bsdb
1918

20-
# [test_cd.py]=1 # it fails on its own
19+
[test_cd.py]=1 # i# No module cl
2120
[test_cl.py]=1 # it fails on its own
2221
[test_codecmaps_cn.py]=1 # it fails on its own
2322
[test_codecmaps_jp.py]=1 # it fails on its own
2423
[test_codecmaps_kr.py]=1 # it fails on its own
2524
[test_codecmaps_tw.py]=1 # it fails on its own
2625
[test_commands.py]=1 # it fails on its own
27-
[test_curses.py]=1 # it fails on its own
26+
[test_curses.py]=1 # needs libncurses.so.5
2827

2928
[test_dbm.py]=1 # it fails on its own
3029
[test_descr.py]=1
@@ -33,16 +32,16 @@ SKIP_TESTS=(
3332
[test_dl.py]=1 # it fails on its own
3433

3534
[test_file.py]=1 # it fails on its own
36-
[test_future5.py]=1 # it fails on its own
35+
[test_future5.py]=pytest
3736

38-
# [test_generators.py]=1 # works but use PYTHON=pytest
37+
[test_generators.py]=pytest
3938
[test_gl.py]=1 # it fails on its own
40-
# [test_grp.py]=1 # works but use PYTHON=pytest
39+
[test_grp.py]=pytest
4140

4241
[test_imageop.py]=1 # it fails on its own
4342
[test_imaplib.py]=1 # it fails on its own
4443
[test_imgfile.py]=1 # it fails on its own
45-
# [test_ioctl.py]=1 # works but use PYTHON=pytest
44+
[test_ioctl.py]=pytest
4645

4746
[test_kqueue.py]=1 # it fails on its own
4847

@@ -63,6 +62,7 @@ SKIP_TESTS=(
6362
[test_scriptpackages.py]=1 # it fails on its own
6463
[test_select.py]=1 # test takes too long to run: 11 seconds
6564

65+
[test_signal.py]=1 # takes more than 15 seconds to run
6666
[test_socket.py]=1 # test takes too long to run: 12 seconds
6767
[test_startfile.py]=1 # it fails on its own
6868
[test_structmembers.py]=1 # it fails on its own
@@ -81,8 +81,8 @@ SKIP_TESTS=(
8181
[test_winreg.py]=1 # it fails on its own
8282
[test_winsound.py]=1 # it fails on its own
8383

84-
[test_zipimport_support.py]=1 # expected test to raise ImportError
85-
[test_zipfile64.py]=1 # Skip Long test
84+
[test_zipimport_support.py]=pytest # expected test to raise ImportError
85+
[test_zipfile.py]=pytest # Skip Long test
8686
# .pyenv/versions/2.6.9/lib/python2.6/lib2to3/refactor.pyc
8787
# .pyenv/versions/2.6.9/lib/python2.6/pyclbr.pyc
8888
)

test/stdlib/runtests.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ if [[ -n $1 ]] ; then
187187
files=$@
188188
typeset -a files_ary=( $(echo $@) )
189189
if (( ${#files_ary[@]} == 1 || DONT_SKIP_TESTS == 1 )) ; then
190-
SKIP_TESTS=()
190+
for file in $files; do
191+
if (( SKIP_TESTS[$file] != "pytest" )); then
192+
SKIP_TESTS[$file] = 1;
193+
fi
194+
done
191195
fi
192196
else
193197
files=$(echo test_*.py)
@@ -201,9 +205,14 @@ NOT_INVERTED_TESTS=${NOT_INVERTED_TESTS:-1}
201205
for file in $files; do
202206
# AIX bash doesn't grok [[ -v SKIP... ]]
203207
[[ -z ${SKIP_TESTS[$file]} ]] && SKIP_TESTS[$file]=0
204-
if [[ ${SKIP_TESTS[$file]} == ${NOT_INVERTED_TESTS} ]] ; then
205-
((skipped++))
206-
continue
208+
209+
if [[ ${SKIP_TESTS[$file]} == "pytest" ]]; then
210+
PYTHON=pytest
211+
else
212+
if [[ ${SKIP_TESTS[$file]}s == ${NOT_INVERTED_TESTS} ]] ; then
213+
((skipped++))
214+
continue
215+
fi
207216
fi
208217

209218
# If the fails *before* decompiling, skip it!

0 commit comments

Comments
 (0)