Skip to content

Commit e6d27a2

Browse files
committed
test_tlz: Ignore missing __file__
Skip asserts if __file__ is missing.
1 parent 6864aab commit e6d27a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

toolz/tests/test_tlz.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ def test_tlz():
4646
except ImportError:
4747
pass
4848

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__
5153

5254
assert tlz.pipe is toolz.pipe
5355

0 commit comments

Comments
 (0)