Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-scipy for openSUSE:Factory checked in at 2022-12-08 16:50:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-scipy (Old) and /work/SRC/openSUSE:Factory/.python-scipy.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scipy" Thu Dec 8 16:50:15 2022 rev:58 rq:1040954 version:1.9.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-scipy/python-scipy.changes 2022-12-03 10:03:33.547214490 +0100 +++ /work/SRC/openSUSE:Factory/.python-scipy.new.1835/python-scipy.changes 2022-12-08 16:50:18.551213987 +0100 @@ -1,0 +2,6 @@ +Wed Dec 7 11:11:11 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com> + +- Add fix-tests-pytest72.patch to fix the tests that fails with pytest 7 + gh#scipy/scipy#17296 + +------------------------------------------------------------------- New: ---- fix-tests-pytest72.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-scipy.spec ++++++ --- /var/tmp/diff_new_pack.yTYXwc/_old 2022-12-08 16:50:19.311217875 +0100 +++ /var/tmp/diff_new_pack.yTYXwc/_new 2022-12-08 16:50:19.315217896 +0100 @@ -100,6 +100,8 @@ Source0: https://files.pythonhosted.org/packages/source/s/scipy/scipy-%{version}.tar.gz # PATCH-FIX-UPSTREAM gh#scipy/scipy#16926#issuecomment-1287507634 Patch1: fix-tests.patch +# PATCH-FIX-UPSTREAM fix-tests-pytest72.patch gh#scipy/scipy#17296 +Patch2: fix-tests-pytest72.patch BuildRequires: %{python_module Cython >= 0.29.32} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module meson-python >= 0.9.0} ++++++ fix-tests-pytest72.patch ++++++ diff --git a/scipy/_lib/tests/test_bunch.py b/scipy/_lib/tests/test_bunch.py index 6525568b099..1af6f2d5fab 100644 --- a/scipy/_lib/tests/test_bunch.py +++ b/scipy/_lib/tests/test_bunch.py @@ -16,7 +16,7 @@ class TestMakeTupleBunch: # Tests with Result # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - def setup(self): + def setup_method(self): # Set up an instance of Result. self.result = Result(x=1, y=2, z=3, w=99, beta=0.5) diff --git a/scipy/optimize/tests/test_minpack.py b/scipy/optimize/tests/test_minpack.py index c88095351c6..64aafbb63b9 100644 --- a/scipy/optimize/tests/test_minpack.py +++ b/scipy/optimize/tests/test_minpack.py @@ -203,10 +203,12 @@ def deriv_func(*args): assert_array_almost_equal(final_flows, np.ones(4)) def test_concurrent_no_gradient(self): - return sequence_parallel([self.test_pressure_network_no_gradient] * 10) + v = sequence_parallel([self.test_pressure_network_no_gradient] * 10) + assert all([result is None for result in v]) def test_concurrent_with_gradient(self): - return sequence_parallel([self.test_pressure_network_with_gradient] * 10) + v = sequence_parallel([self.test_pressure_network_with_gradient] * 10) + assert all([result is None for result in v]) class TestRootHybr: @@ -386,10 +388,12 @@ def deriv_func(*args): assert_array_almost_equal(params_fit, self.abc, decimal=2) def test_concurrent_no_gradient(self): - return sequence_parallel([self.test_basic] * 10) + v = sequence_parallel([self.test_basic] * 10) + assert all([result is None for result in v]) def test_concurrent_with_gradient(self): - return sequence_parallel([self.test_basic_with_gradient] * 10) + v = sequence_parallel([self.test_basic_with_gradient] * 10) + assert all([result is None for result in v]) def test_func_input_output_length_check(self): diff --git a/scipy/stats/tests/test_hypotests.py b/scipy/stats/tests/test_hypotests.py index 129b3fffc67..e5780df6572 100644 --- a/scipy/stats/tests/test_hypotests.py +++ b/scipy/stats/tests/test_hypotests.py @@ -169,7 +169,7 @@ def test_callable_cdf(self): class TestMannWhitneyU: - def setup(self): + def setup_method(self): _mwu_state._recursive = True # All magic numbers are from R wilcox.test unless otherwise specied @@ -616,15 +616,15 @@ def test_gh_2118(self, x, y, alternative, expected): method="asymptotic") assert_allclose(res, expected, rtol=1e-12) - def teardown(self): + def teardown_method(self): _mwu_state._recursive = None class TestMannWhitneyU_iterative(TestMannWhitneyU): - def setup(self): + def setup_method(self): _mwu_state._recursive = False - def teardown(self): + def teardown_method(self): _mwu_state._recursive = None