Skip to content

Commit

Permalink
testing: numpy is in the same directory as dill...
Browse files Browse the repository at this point in the history
  • Loading branch information
leogama committed May 31, 2022
1 parent 3ec07e8 commit fd26449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dill/_dill.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ def dumps(obj, protocol=None, byref=None, fmode=None, recurse=None, portable=Non
"""
if os.environ.get('CI') and \
getattr(obj, '__qualname__', None) != 'test_getstate.<locals>.<lambda>' and \
not (os.environ.get('TRAVIS') and \
obj.__module__ == 'numpy' if isinstance(obj, type) else any(base.__module__ == 'numpy' for base in type(obj).mro())) and \
__file__ != 'test_session.py':
_test_portable(obj, protocol, byref, fmode, recurse, **kwds)
file = StringIO()
Expand Down

0 comments on commit fd26449

Please sign in to comment.