Skip to content

Test failures with Python 3.14 #224

@opoplawski

Description

@opoplawski
+ py.test-3.14 cytoolz/tests -k 'not test_class_sigs' -v
============================= test session starts ==============================
platform linux -- Python 3.14.0b3, pytest-8.3.5, pluggy-1.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /builddir/build/BUILD/python-cytoolz-1.0.1-build/cytoolz-1.0.1
configfile: pyproject.toml
collecting ... collected 194 items / 1 deselected / 193 selected
...
____________________________ 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/lib64/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions