From c08eccf6adfbdffedaf4ce63df297d19467cd2bf Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 19 Sep 2018 03:23:05 -0400 Subject: [PATCH] Run Qt5 tests separately to not conflict with Qt4. --- python-matplotlib.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python-matplotlib.spec b/python-matplotlib.spec index fa884b5..23f482c 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -328,7 +328,17 @@ PYTHONDONTWRITEBYTECODE=1 \ xvfb-run -a -s "-screen 0 640x480x24" \ %{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \ -m 'not network' \ - -k 'not test_invisible_Line_rendering' + -k 'not test_invisible_Line_rendering and not backend_qt5' +# Run Qt5Agg tests separately to not conflict with Qt4 tests. +MPLCONFIGDIR=$PWD \ +MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \ +MATPLOTLIBRC=%{buildroot}%{_sysconfdir}/matplotlibrc \ +PYTHONPATH=%{buildroot}%{python3_sitearch} \ +PYTHONDONTWRITEBYTECODE=1 \ + xvfb-run -a -s "-screen 0 640x480x24" \ + %{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \ + -m 'not network' \ + matplotlib.tests.test_backend_qt5 %endif # run_tests %files -n python-matplotlib-data