Skip to content

Commit f8a3459

Browse files
committed
testing: numpy is in the same directory as dill...
1 parent 3ec07e8 commit f8a3459

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dill/_dill.py

+2
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ def dumps(obj, protocol=None, byref=None, fmode=None, recurse=None, portable=Non
364364
"""
365365
if os.environ.get('CI') and \
366366
getattr(obj, '__qualname__', None) != 'test_getstate.<locals>.<lambda>' and \
367+
not (os.environ.get('TRAVIS') and \
368+
obj.__module__ == 'numpy' if isinstance(obj, type) else any(base.__module__ == 'numpy' for base in type(obj).mro())) and \
367369
__file__ != 'test_session.py':
368370
_test_portable(obj, protocol, byref, fmode, recurse, **kwds)
369371
file = StringIO()

0 commit comments

Comments
 (0)