···11-diff --git a/skimage/data/setup.py b/skimage/data/setup.py22-index 528e9c284ce..ba0e155559c 10064433---- a/skimage/data/setup.py44-+++ b/skimage/data/setup.py55-@@ -11,7 +11,11 @@ def configuration(parent_package='', top_path=None):66- # further notice.77- # Testing data and additional datasets should only88- # be made available via pooch99-- config.add_data_files(*legacy_datasets)1010-+ # Nix patch: add ALL images to facilitate testing of a fully-built package1111-+ from pathlib import Path1212-+ config.add_data_files(1313-+ *(path.name for path in Path(__file__).parent.glob("*") if path.suffix != ".py")1414-+ )1515- # It seems hard to create a consistent hash for README.txt since1616- # the line endings keep getting converted1717- config.add_data_files('README.txt')
···11+diff --git a/skimage/exposure/tests/test_exposure.py b/skimage/exposure/tests/test_exposure.py22+index ed8dd6bc8..8ec7d13bf 10064433+--- a/skimage/exposure/tests/test_exposure.py44++++ b/skimage/exposure/tests/test_exposure.py55+@@ -368,19 +368,16 @@ def test_rescale_nan_warning(in_range, out_range):66+ )77+88+ # 2019/11/10 Passing NaN to np.clip raises a DeprecationWarning for99+- # versions above 1.171010+- # TODO: Remove once NumPy removes this DeprecationWarning1111++ # versions above 1.17, "|\A\Z" marks as optional warning1212++ # TODO: Remove once NumPy 1.25.0 is minimal dependency1313+ numpy_warning_1_17_plus = (1414+- "Passing `np.nan` to mean no clipping in np.clip"1515++ "|\\A\\ZPassing `np.nan` to mean no clipping in np.clip"1616+ )1717+1818+- if in_range == "image":1919+- exp_warn = [msg, numpy_warning_1_17_plus]2020+- else:2121+- exp_warn = [msg]2222++ with expected_warnings([msg, numpy_warning_1_17_plus]):2323++ result = exposure.rescale_intensity(image, in_range, out_range)2424+2525+- with expected_warnings(exp_warn):2626+- exposure.rescale_intensity(image, in_range, out_range)2727++ assert np.all(np.isnan(result))2828+2929+3030+ @pytest.mark.parametrize(