File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ def exec_module(self, module):
63
63
module .__doc__ = fast_mod .__doc__
64
64
65
65
# show file from toolz during introspection
66
- module .__file__ = slow_mod .__file__
66
+ try :
67
+ module .__file__ = slow_mod .__file__
68
+ except AttributeError :
69
+ pass
67
70
68
71
for k , v in fast_mod .__dict__ .items ():
69
72
tv = slow_mod .__dict__ .get (k )
Original file line number Diff line number Diff line change @@ -46,8 +46,10 @@ def test_tlz():
46
46
except ImportError :
47
47
pass
48
48
49
- assert tlz .__file__ == toolz .__file__
50
- assert tlz .functoolz .__file__ == toolz .functoolz .__file__
49
+ if hasattr (tlz , '__file__' ):
50
+ assert tlz .__file__ == toolz .__file__
51
+ if hasattr (tlz .functoolz , '__file__' ):
52
+ assert tlz .functoolz .__file__ == toolz .functoolz .__file__
51
53
52
54
assert tlz .pipe is toolz .pipe
53
55
You can’t perform that action at this time.
0 commit comments