Bug#1118742: skimage: FTBFS with Python 3.14 - Test_deprecate_parameter failure

Graham Inggs ginggs at debian.org
Fri Oct 24 18:08:10 BST 2025


Source: skimage
Version: 0.25.2-2
Severity: important
Tags: ftbfs patch
User: debian-python at lists.debian.org
Usertags: python3.14

Hi Maintainer

skimage will FTBFS when Python 3.14 is added as a supported version,
see #1117927.  This transition is already underway in Ubuntu.  I've
copied what I hope is the relevant part of their log below.

The attached patch contains a fix for this issue cherry-picked from upstream.

Regards
Graham


=================================== FAILURES ===================================
________________ Test_deprecate_parameter.test_wrong_param_name ________________

self = <skimage._shared.tests.test_utils.Test_deprecate_parameter
object at 0x7ea5ae8fd550>

    def test_wrong_param_name(self):
        with pytest.raises(ValueError, match="'old' is not in list"):

>           @deprecate_parameter("old", start_version="0.10", stop_version="0.12")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

skimage/_shared/tests/test_utils.py:475:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <skimage._shared.utils.deprecate_parameter object at 0x7ea5a5b5ea50>
func = <function
Test_deprecate_parameter.test_wrong_param_name.<locals>.foo at
0x7ea59e83f7f0>

    def __call__(self, func):
        parameters = inspect.signature(func).parameters
>       deprecated_idx = list(parameters.keys()).index(self.deprecated_name)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       ValueError: list.index(x): x not in list

skimage/_shared/utils.py:255: ValueError

During handling of the above exception, another exception occurred:

self = <skimage._shared.tests.test_utils.Test_deprecate_parameter
object at 0x7ea5ae8fd550>

    def test_wrong_param_name(self):
>       with pytest.raises(ValueError, match="'old' is not in list"):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       AssertionError: Regex pattern did not match.
E        Regex: "'old' is not in list"
E        Input: 'list.index(x): x not in list'

skimage/_shared/tests/test_utils.py:473: AssertionError
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python3.14.patch
Type: text/x-patch
Size: 3102 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20251024/675ca49f/attachment.bin>


More information about the debian-science-maintainers mailing list