This repository was archived by the owner on Apr 16, 2021. It is now read-only.
File tree 1 file changed +6
-10
lines changed 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 4
4
# Commit where MPLLOCALFREETYPE introduced
5
5
LOCAL_FT_COMMIT=5ad9b15
6
6
7
+ # Test arguments
8
+ NPROC=2
9
+ PYTEST_ARGS=" -ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC "
10
+
7
11
8
12
function pre_build {
9
13
# Any stuff that you need to do before you start building the wheels
@@ -60,16 +64,8 @@ function run_tests {
60
64
python -c " import matplotlib; print(matplotlib.__file__)"
61
65
python -c " from matplotlib import font_manager"
62
66
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
73
69
74
70
echo " Check import of tcl / tk"
75
71
MPLBACKEND=" tkagg" python -c ' import matplotlib.pyplot as plt; print(plt.get_backend())'
You can’t perform that action at this time.
0 commit comments