Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 90a94c0

Browse files
committed
Try using py.test for tests
1 parent 47c976f commit 90a94c0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

config.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# Commit where MPLLOCALFREETYPE introduced
55
LOCAL_FT_COMMIT=5ad9b15
66

7+
# Test arguments
8+
NPROC=2
9+
PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
10+
711

812
function pre_build {
913
# Any stuff that you need to do before you start building the wheels
@@ -60,16 +64,8 @@ function run_tests {
6064
python -c "import matplotlib; print(matplotlib.__file__)"
6165
python -c "from matplotlib import font_manager"
6266

63-
echo "testing matplotlib using 1 process"
64-
# 1.5.x has pesky unicode error for sphinx extension test
65-
local mpl_version=$(python -c "import matplotlib; print(matplotlib.__version__)")
66-
if [[ "$mpl_version" =~ 1\. ]]; then
67-
local extra_test_args="-e TestTinyPages"
68-
else
69-
# See gh issue 7799
70-
local extra_test_args="--recursionlimit=1500"
71-
fi
72-
python $MPL_SRC_DIR/tests.py -sv $extra_test_args
67+
echo "testing matplotlib using $NPROC process(es)"
68+
py.test $PYTEST_ARGS
7369

7470
echo "Check import of tcl / tk"
7571
MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())'

0 commit comments

Comments
 (0)