Open yurivict opened 5 months ago
0.12.1 has 2 failures:
========================================================================================= FAILURES ==========================================================================================
______________________________________________________________________________ test_introspect_builtin_modules ______________________________________________________________________________
def test_introspect_builtin_modules():
mods = [builtins, functools, itertools, operator, toolz,
toolz.functoolz, toolz.itertoolz, toolz.dicttoolz, toolz.recipes]
denylist = set()
def add_denylist(mod, attr):
if hasattr(mod, attr):
denylist.add(getattr(mod, attr))
add_denylist(builtins, 'basestring')
add_denylist(builtins, 'NoneType')
add_denylist(builtins, '__metaclass__')
add_denylist(builtins, 'sequenceiterator')
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 denylist)
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 __orig_import__
toolz/tests/test_inspect_args.py:433: AssertionError
_________________________________________________________________________________________ test_tlz __________________________________________________________________________________________
def test_tlz():
import tlz
> tlz.curry
E AttributeError: module 'tlz' has no attribute 'curry'
toolz/tests/test_tlz.py:6: AttributeError
=============================================================================== 2 failed, 178 passed in 2.23s ===============================================================================
*** Error code 1
I could not reproduce this issue on 0.12.0 on 3.9. Just to be clear you mean the tag 0.12.0 correct ?
Just to be clear you mean the tag 0.12.0 correct ?
Yes.
Are you able to reproduce it ?
One test, toolz/tests/test_tlz.py::test_tlz, fails with the same error:
import_module('toolz.curry')
fails with:No module named 'toolz.curry'
.from toolz import curry
succeeds.Version: 0.12.0 Python-3.9 FreeBSD 14.0