Skip to content

Commit d3ed646

Browse files
committed
Make a pass over 3.2 stdlib exclusions
1 parent d9ff583 commit d3ed646

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

test/stdlib/3.2-exclude.sh

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,42 @@
11
SKIP_TESTS=(
2-
[test_descr.py]=1 # FIXME: Works on c90ff51?
2+
[test_descr.py]=1
3+
# [test_descr.py]=pytest_module # FIXME: Works on c90ff51?
4+
# AssertionError: 'D(4)C(4)A(4)' != 'D(4)C(4)B(4)A(4)'
5+
# - D(4)C(4)A(4)
6+
# + D(4)C(4)B(4)A(4)
7+
# ? ++++
38

4-
[test_cmath.py]=1 # FIXME
9+
10+
[test_cmath.py]=1 # Control-flow "elif else -> else: if else"
11+
# [test_cmath.py]=pytest_module
512
# AssertionError: rect1000: rect(complex(0.0, 0.0))
613
# Expected: complex(0.0, 0.0)
714
# Received: complex(0.0, -1.0)
815
# Received value insufficiently close to expected value.
916

1017

1118
[test_cmd_line.py]=1
12-
[test_collections.py]=1
19+
20+
[test_collections.py]=1 # fail on its own
21+
# E TypeError: __new__() takes exactly 4 arguments (1 given)
22+
1323
[test_concurrent_futures.py]=1 # too long to run over 46 seconds by itself
14-
[test_datetimetester.py]=1
15-
[test_decimal.py]=1
16-
[test_dictcomps.py]=1 # FIXME: semantic error: actual = {k:v for k in }
17-
[test_doctest.py]=1 # test failures
24+
[test_datetime.py]=pytest_module
25+
26+
[test_decimal.py]=1 # Fails on its own, even with pytest
27+
28+
[test_dictcomps.py]=1
29+
# [test_dictcomps.py]=pytest_module # FIXME: semantic error: actual = {k:v for k in }
30+
# assert (count * 2) <= i
31+
32+
[test_doctest.py]=1 # Missing pytest fixture
33+
# [test_doctest.py]=pytest_module
34+
# fixture 'coverdir' not found
35+
1836
[test_dis.py]=1 # We change line numbers - duh!
37+
1938
[test_exceptions.py]=1 # parse error
39+
# [test_exceptions.py]=pytest_module # parse error
2040

2141
[test_modulefinder.py]=1 # test failures
2242
[test_multiprocessing.py]=1 # test takes too long to run: 35 seconds

test/stdlib/runtests.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,8 @@ if ((IS_PYPY)); then
168168
else
169169
cp -r ${PYENV_ROOT}/versions/${PYVERSION}.${MINOR}/lib/python${PYVERSION}/test $TESTDIR
170170
fi
171-
if [[ $PYVERSION == 3.2 ]] ; then
172-
cp ${PYENV_ROOT}/versions/${PYVERSION}.${MINOR}/lib/python${PYVERSION}/test/* $TESTDIR
173-
cd $TESTDIR
174-
else
175-
cd $TESTDIR/test
176-
fi
171+
cd $TESTDIR/test
172+
177173
pyenv local $FULLVERSION
178174
export PYTHONPATH=$TESTDIR
179175
export PATH=${PYENV_ROOT}/shims:${PATH}
@@ -188,7 +184,7 @@ if [[ -n $1 ]] ; then
188184
typeset -a files_ary=( $(echo $@) )
189185
if (( ${#files_ary[@]} == 1 || DONT_SKIP_TESTS == 1 )) ; then
190186
for file in $files; do
191-
if (( SKIP_TESTS[$file] != "pytest" )); then
187+
if (( SKIP_TESTS[$file] != "pytest" || SKIP_TESTS[$file] != "pytest_module" )); then
192188
SKIP_TESTS[$file]=1;
193189
fi
194190
done
@@ -208,6 +204,8 @@ for file in $files; do
208204

209205
if [[ ${SKIP_TESTS[$file]} == "pytest" ]]; then
210206
PYTHON=pytest
207+
elif [[ ${SKIP_TESTS[$file]} == "pytest_module" ]]; then
208+
PYTHON="$PYTHON -m pytest"
211209
else
212210
if [[ ${SKIP_TESTS[$file]}s == ${NOT_INVERTED_TESTS} ]] ; then
213211
((skipped++))

0 commit comments

Comments
 (0)