Source: python-cytoolz Version: 0.11.0-1 Severity: important Tags: ftbfs User: debian-pyt...@lists.debian.org Usertags: python3.10
python-cytoolz ftbfs with python3-defaults from experimental: [...] I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_cytoolz/build; python3.10 -m pytest ============================= test session starts ============================== platform linux -- Python 3.10.0+, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 rootdir: /<<PKGBUILDDIR>> collected 187 items cytoolz/tests/test_curried.py .......... [ 5%] cytoolz/tests/test_dev_skip_test.py .. [ 6%] cytoolz/tests/test_dicttoolz.py ........................................ [ 27%] ....... [ 31%] cytoolz/tests/test_docstrings.py . [ 32%] cytoolz/tests/test_doctests.py . [ 32%] cytoolz/tests/test_functoolz.py ...................................... [ 52%] cytoolz/tests/test_inspect_args.py ..............F.. [ 62%] cytoolz/tests/test_itertoolz.py ........................................ [ 83%] .......... [ 88%] cytoolz/tests/test_none_safe.py .... [ 90%] cytoolz/tests/test_recipes.py .. [ 91%] cytoolz/tests/test_serialization.py ......... [ 96%] cytoolz/tests/test_signatures.py ... [ 98%] cytoolz/tests/test_tlz.py . [ 98%] cytoolz/tests/test_utils.py .. [100%] =================================== FAILURES =================================== _______________________ test_introspect_builtin_modules ________________________ def test_introspect_builtin_modules(): mods = [builtins, functools, itertools, operator, cytoolz, cytoolz.functoolz, cytoolz.itertoolz, cytoolz.dicttoolz, cytoolz.recipes] blacklist = set() def add_blacklist(mod, attr): if hasattr(mod, attr): blacklist.add(getattr(mod, attr)) add_blacklist(builtins, 'basestring') add_blacklist(builtins, 'NoneType') add_blacklist(builtins, '__metaclass__') add_blacklist(builtins, 'sequenceiterator') add_blacklist(builtins, 'breakpoint') def is_missing(modname, name, func): if name.startswith('_') and not name.startswith('__'): return False if name.startswith('__pyx_unpickle_') or name.endswith('_cython__'): return False try: if issubclass(func, BaseException): return False except TypeError: pass try: return (callable(func) and func.__module__ is not None and modname in func.__module__ and is_partial_args(func, (), {}) is not True and func not in blacklist) except AttributeError: return False missing = {} for mod in mods: modname = mod.__name__ for name, func in vars(mod).items(): if is_missing(modname, name, func): if modname not in missing: missing[modname] = [] missing[modname].append(name) if missing: messages = [] for modname, names in sorted(missing.items()): msg = '{}:\n {}'.format(modname, '\n '.join(sorted(names))) messages.append(msg) message = 'Missing introspection for the following callables:\n\n' > raise AssertionError(message + '\n\n'.join(messages)) E AssertionError: Missing introspection for the following callables: E E builtins: E anext cytoolz/tests/test_inspect_args.py:434: AssertionError =============================== warnings summary =============================== cytoolz/compatibility.py:2 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_cytoolz/build/cytoolz/compatibility.py:2: DeprecationWarning: The toolz.compatibility module is no longer needed in Python 3 and has been deprecated. Please import these utilities directly from the standard library. This module will be removed in a future release. warnings.warn("The toolz.compatibility module is no longer " .pybuild/cpython3_3.10_cytoolz/build/cytoolz/tests/test_itertoolz.py::test_random_sample .pybuild/cpython3_3.10_cytoolz/build/cytoolz/tests/test_itertoolz.py::test_random_sample .pybuild/cpython3_3.10_cytoolz/build/cytoolz/tests/test_itertoolz.py::test_random_sample .pybuild/cpython3_3.10_cytoolz/build/cytoolz/tests/test_itertoolz.py::test_random_sample /usr/lib/python3.10/random.py:125: DeprecationWarning: Seeding based on hashing is deprecated since Python 3.9 and will be removed in a subsequent version. The only supported seed types are: None, int, float, str, bytes, and bytearray. self.seed(x) -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED cytoolz/tests/test_inspect_args.py::test_introspect_builtin_modules - ... ================== 1 failed, 186 passed, 5 warnings in 1.16s =================== E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_cytoolz/build; python3.10 -m pytest