Skip to content

Commit

Permalink
Backport fix to a test from cytoolz. pytoolz/cytoolz#105
Browse files Browse the repository at this point in the history
Blacklist special Cython functions when checking for introspection.
  • Loading branch information
eriknw committed Sep 26, 2017
1 parent c3a6294 commit 21bf00c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolz/tests/test_inspect_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ def add_blacklist(mod, attr):
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
Expand Down

0 comments on commit 21bf00c

Please sign in to comment.