Skip to content

Commit 21bf00c

Browse files
committed
Backport fix to a test from cytoolz. pytoolz/cytoolz#105
Blacklist special Cython functions when checking for introspection.
1 parent c3a6294 commit 21bf00c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolz/tests/test_inspect_args.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ def add_blacklist(mod, attr):
409409
def is_missing(modname, name, func):
410410
if name.startswith('_') and not name.startswith('__'):
411411
return False
412+
if name.startswith('__pyx_unpickle_') or name.endswith('_cython__'):
413+
return False
412414
try:
413415
if issubclass(func, BaseException):
414416
return False

0 commit comments

Comments
 (0)