Accepting request 1217299 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/1217299
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=111
This commit is contained in:
Ana Guerrero 2024-10-23 19:08:01 +00:00 committed by Git OBS Bridge
commit 8fd90966a5
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 23 08:30:59 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Fix tests for Leap 16.0
-------------------------------------------------------------------
Thu Oct 3 08:52:39 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -341,20 +341,31 @@ skip_tests+=" or test_compressed1"
# image comparison failures due to precisions dicrepancies to the x86 produced references
skip_tests+=" or png or svg or pdf"
%endif
# Fails in SLFO:Main
%if 0%{?suse_version} <= %SLE_VERSION
# Timeout, this test freeze forever
skip_tests+=" or test_determinism"
skip_tests+=" or test_pcolormesh[png] or test_pcolormesh_alpha[png]"
%endif
# backend tests landing in the wrong xdist process may fail with an error. Test them without xdist.
no_xdist="test_backend or test_span_selector_animated_artists_callback"
%{python_expand # see https://matplotlib.org/devdocs/devel/testing.html#testing
# if one of the pyargs modules is not present, the xargs collection looks empty
# Ignore ImportWarning that happens with gtk3
$python -m pytest --pyargs matplotlib.tests \
mpl_toolkits.axes_grid1.tests \
mpl_toolkits.axisartist.tests \
mpl_toolkits.mplot3d.tests \
-n auto \
-W "ignore::ImportWarning" \
-m "not network" \
-vv -rsfE \
-k "not (${no_xdist} ${skip_tests})"
$python -m pytest --pyargs matplotlib.tests \
-vv -rsfE \
-W "ignore::ImportWarning" \
-k "(${no_xdist}) and not (${skip_tests:4})"
}
%endif