From 9fbcf3f2622c58a7f8bf4ff4bf228e88b5d902a9e05df028825053d6173eccfe Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 23 Apr 2022 19:26:49 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=69 --- python-astropy.spec | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python-astropy.spec b/python-astropy.spec index b4835d1..4031926 100644 --- a/python-astropy.spec +++ b/python-astropy.spec @@ -136,8 +136,7 @@ BuildRequires: libxml2-tools BuildRequires: %{python_module astropy = %{version}} BuildRequires: %{python_module ipython >= 4.2} BuildRequires: %{python_module objgraph} -# upstream declares pytest >= 7, but Tumbleweed is not ready for it (!) -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest >= 7} BuildRequires: %{python_module pytest-astropy >= 0.9} BuildRequires: %{python_module pytest-doctestplus >= 0.12} BuildRequires: %{python_module pytest-mpl} @@ -212,11 +211,6 @@ donttest+=" or (test_standard_profile and test_main)" # gh#astropy/astropy#12017 donttest+=" or test_stats" %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 # running pytest directly would require building the extensions inplace %{python_exec -B -c " From 1db81b18e227e3c7d3e5ada4f2bd9391c13b1945acb0a6091be72994aadabab0 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 23 Apr 2022 19:27:56 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=70 --- python-astropy.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-astropy.changes b/python-astropy.changes index c6b7deb..74ae3be 100644 --- a/python-astropy.changes +++ b/python-astropy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Apr 23 19:27:14 UTC 2022 - Ben Greiner + +- Enable tests requiring Pytest 7 + ------------------------------------------------------------------- Fri Apr 1 17:57:36 UTC 2022 - Ben Greiner