Skip to content

Commit 59580b6

Browse files
committed
TST: skip blosc tests on msgpacks if not installed
Author: Jeff Reback <[email protected]> Closes #12361 from jreback/blosc and squashes the following commits: 19210d1 [Jeff Reback] TST: skip blosc tests on msgpacks
1 parent 286d304 commit 59580b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/io/tests/test_packers.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,11 @@ def read_msgpacks(self, version):
725725
f.split('.')[-4][-1] == '2'):
726726
continue
727727
vf = os.path.join(pth, f)
728-
self.compare(vf, version)
728+
try:
729+
self.compare(vf, version)
730+
except ImportError:
731+
# blosc not installed
732+
continue
729733
n += 1
730734
assert n > 0, 'Msgpack files are not tested'
731735

0 commit comments

Comments
 (0)