Source: python-cytoolz
Version: 1.0.1-1
Severity: normal
Tags: ftbfs upstream
User: [email protected]
Usertags: python3.14
Forwarded: https://github.com/pytoolz/cytoolz/pull/225

Python 3.14 is upon us, and we would like to enable it as a supported version 
in Debian.

This package fails to build with Python 3.14 as an available version. Graham 
Inggs did a test rebuild in Ubuntu and found this build failure. These can be 
reproduced in Debian by installing python3-all from experimental (but you may 
need to rebuild some dependencies by hand, first).

Upstream has a pending PR that should resolve this issue:
https://github.com/pytoolz/cytoolz/pull/225

Build log:
https://launchpadlibrarian.net/820393544/buildlog_ubuntu-questing-amd64.python-cytoolz_1.0.1-1build2_BUILDING.txt.gz

Error:
=================================== FAILURES ===================================
____________________________ test_curried_operator _____________________________

    def test_curried_operator():
        import operator

        for k, v in vars(cop).items():
            if not callable(v):
                continue

            if not isinstance(v, cytoolz.curry):
                try:
                    # Make sure it is unary
                    v(1)
                except TypeError:
                    try:
                        v('x')
                    except TypeError:
                        pass
                    else:
                        continue
                    raise AssertionError(
                        'cytoolz.curried.operator.%s is not curried!' % k,
                    )
>           assert should_curry(getattr(operator, k)) == isinstance(v, 
> cytoolz.curry), k
E           AssertionError: is_none
E           assert False == True
E            +  where False = should_curry(<built-in function is_none>)
E            +    where <built-in function is_none> = getattr(<module 
'operator' from '/usr/lib/python3.14/operator.py'>, 'is_none')
E            +  and   True = isinstance(<built-in function is_none>, <class 
'cytoolz.functoolz.curry'>)
E            +    where <class 'cytoolz.functoolz.curry'> = cytoolz.curry

../../../cytoolz/tests/test_curried.py:74: AssertionError
______________________________ test_has_keywords _______________________________

    def test_has_keywords():
        assert has_keywords(lambda: None) is False
        assert has_keywords(lambda x: None) is False
        assert has_keywords(lambda x=1: None)
        assert has_keywords(lambda **kwargs: None)
        assert has_keywords(int)
        assert has_keywords(sorted)
        assert has_keywords(max)
>       assert has_keywords(map) is False
E       assert True is False
E        +  where True = has_keywords(map)

../../../cytoolz/tests/test_inspect_args.py:289: AssertionError

Reply via email to