Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nibabel for openSUSE:Factory checked in at 2025-07-31 17:46:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nibabel (Old) and /work/SRC/openSUSE:Factory/.python-nibabel.new.1944 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nibabel" Thu Jul 31 17:46:56 2025 rev:15 rq:1296683 version:5.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nibabel/python-nibabel.changes 2024-11-26 20:56:27.755838787 +0100 +++ /work/SRC/openSUSE:Factory/.python-nibabel.new.1944/python-nibabel.changes 2025-07-31 17:50:10.970082146 +0200 @@ -1,0 +2,7 @@ +Thu Jul 31 02:59:03 UTC 2025 - Steve Kowalik <[email protected]> + +- Add patch ignore-userwarnings.patch: + * Ignore any UserWarnings that arise, rather than to trying to swallow + them with pytest.warns(). + +------------------------------------------------------------------- New: ---- ignore-userwarnings.patch ----------(New B)---------- New: - Add patch ignore-userwarnings.patch: * Ignore any UserWarnings that arise, rather than to trying to swallow ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nibabel.spec ++++++ --- /var/tmp/diff_new_pack.1KK0HJ/_old 2025-07-31 17:50:11.710112884 +0200 +++ /var/tmp/diff_new_pack.1KK0HJ/_new 2025-07-31 17:50:11.710112884 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-nibabel # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ URL: https://nipy.org/nibabel # SourceRepository: https://github.com/nipy/nibabel Source: https://files.pythonhosted.org/packages/source/n/nibabel/nibabel-%{version}.tar.gz +# PATCH-FIX-UPSTREAM One commit of gh#nipy/nibabel#1416 +Patch0: ignore-userwarnings.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module hatchling} ++++++ ignore-userwarnings.patch ++++++ >From 3f40a3bc0c4bd996734576a15785ad0f769a963a Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" <[email protected]> Date: Fri, 16 May 2025 14:25:24 -0400 Subject: [PATCH 2/2] fix: Ignore warning that may not be emitted --- nibabel/tests/test_processing.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nibabel/tests/test_processing.py b/nibabel/tests/test_processing.py index f1a4f0a90..7e2cc4b16 100644 --- a/nibabel/tests/test_processing.py +++ b/nibabel/tests/test_processing.py @@ -9,6 +9,7 @@ """Testing processing module""" import logging +import warnings from os.path import dirname from os.path import join as pjoin @@ -169,7 +170,8 @@ def test_resample_from_to(caplog): exp_out[1:, :, :] = data[1, :, :] assert_almost_equal(out.dataobj, exp_out) out = resample_from_to(img, trans_p_25_img) - with pytest.warns(UserWarning): # Suppress scipy warning + with warnings.catch_warnings(): + warnings.simplefilter('ignore', UserWarning) exp_out = spnd.affine_transform(data, [1, 1, 1], [-0.25, 0, 0], order=3) assert_almost_equal(out.dataobj, exp_out) # Test cval @@ -275,7 +277,8 @@ def test_resample_to_output(caplog): assert_array_equal(out_img.dataobj, np.flipud(data)) # Subsample voxels out_img = resample_to_output(Nifti1Image(data, np.diag([4, 5, 6, 1]))) - with pytest.warns(UserWarning): # Suppress scipy warning + with warnings.catch_warnings(): + warnings.simplefilter('ignore', UserWarning) exp_out = spnd.affine_transform(data, [1 / 4, 1 / 5, 1 / 6], output_shape=(5, 11, 19)) assert_array_equal(out_img.dataobj, exp_out) # Unsubsample with voxel sizes
