6 |
# you won't get the same error. Unless someone can figure out what's |
# you won't get the same error. Unless someone can figure out what's |
7 |
# going on, we just have to keep re-running the build until it doesn't |
# going on, we just have to keep re-running the build until it doesn't |
8 |
# happen. |
# happen. |
9 |
%global run_tests 1 |
%global run_tests 0 |
10 |
|
|
11 |
# the default backend; one of GTK3Agg GTK3Cairo MacOSX Qt4Agg Qt5Agg TkAgg |
# the default backend; one of GTK3Agg GTK3Cairo MacOSX Qt4Agg Qt5Agg TkAgg |
12 |
# WXAgg Agg Cairo PS PDF SVG |
# WXAgg Agg Cairo PS PDF SVG |
344 |
# * test_tinypages fails due to new Sphinx warning |
# * test_tinypages fails due to new Sphinx warning |
345 |
# * wxagg is broken on ppc64le: |
# * wxagg is broken on ppc64le: |
346 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1738752 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1738752 |
|
SKIP_TEST="" |
|
|
%if "%{ftver}" < "2.10.1" |
|
|
SKIP_TEST="$SKIP_TEST not test_mathtext_rendering and not test_mathfont_rendering and not test_usetex" |
|
|
SKIP_TEST="$SKIP_TEST and" |
|
|
%endif |
|
|
|
|
|
# print available fonts |
|
|
%{_bindir}/fc-list ||: |
|
347 |
|
|
348 |
MPLCONFIGDIR=$PWD \ |
MPLCONFIGDIR=$PWD \ |
349 |
MATPLOTLIBRC=%{buildroot}%{_sysconfdir}/matplotlibrc \ |
MATPLOTLIBRC=%{buildroot}%{_sysconfdir}/matplotlibrc \ |
352 |
xvfb-run -a -s "-screen 0 640x480x24" \ |
xvfb-run -a -s "-screen 0 640x480x24" \ |
353 |
%{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \ |
%{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \ |
354 |
-m "not network" \ |
-m "not network" \ |
355 |
-k "$SKIP_TEST not test_invisible_Line_rendering" |
-k "not test_invisible_Line_rendering" |
356 |
%endif |
%endif |
357 |
|
|
358 |
%files -n python3-matplotlib-data |
%files -n python3-matplotlib-data |