Accepting request 972390 from devel:languages:python:numeric

- Enable tests requiring Pytest 7

OBS-URL: https://build.opensuse.org/request/show/972390
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astropy?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2022-04-24 18:34:21 +00:00 committed by Git OBS Bridge
commit 4c93e7c941
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Apr 23 19:27:14 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Enable tests requiring Pytest 7
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 1 17:57:36 UTC 2022 - Ben Greiner <code@bnavigator.de> Fri Apr 1 17:57:36 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -136,8 +136,7 @@ BuildRequires: libxml2-tools
BuildRequires: %{python_module astropy = %{version}} BuildRequires: %{python_module astropy = %{version}}
BuildRequires: %{python_module ipython >= 4.2} BuildRequires: %{python_module ipython >= 4.2}
BuildRequires: %{python_module objgraph} BuildRequires: %{python_module objgraph}
# upstream declares pytest >= 7, but Tumbleweed is not ready for it (!) BuildRequires: %{python_module pytest >= 7}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-astropy >= 0.9} BuildRequires: %{python_module pytest-astropy >= 0.9}
BuildRequires: %{python_module pytest-doctestplus >= 0.12} BuildRequires: %{python_module pytest-doctestplus >= 0.12}
BuildRequires: %{python_module pytest-mpl} BuildRequires: %{python_module pytest-mpl}
@ -212,11 +211,6 @@ donttest+=" or (test_standard_profile and test_main)"
# gh#astropy/astropy#12017 # gh#astropy/astropy#12017
donttest+=" or test_stats" donttest+=" or test_stats"
%endif %endif
# These require pytest >= 7: new pytest.warns API
donttest+=" or (test_c_reader.py and range)"
donttest+=" or (test_profiling and test_spectrum)"
donttest+=" or (test_utils and test_noncelestial_scale and True)"
#
# http://docs.astropy.org/en/latest/development/testguide.html#running-tests # http://docs.astropy.org/en/latest/development/testguide.html#running-tests
# running pytest directly would require building the extensions inplace # running pytest directly would require building the extensions inplace
%{python_exec -B -c " %{python_exec -B -c "