Skip to content

Commit bc3ad9a

Browse files
committed
TST: packers not finding blosc/zlib should be an ImportError
1 parent 28ba08c commit bc3ad9a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ci/requirements-2.7_COMPAT.pip

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
blosc
21
openpyxl
32
argparse

pandas/io/packers.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ def _check_zlib():
7777
pass
7878
except ImportError:
7979
def _check_zlib():
80-
raise ValueError('zlib is not installed')
80+
raise ImportError('zlib is not installed')
8181

8282
_check_zlib.__doc__ = dedent(
8383
"""\
8484
Check if zlib is installed.
8585
8686
Raises
8787
------
88-
ValueError
88+
ImportError
8989
Raised when zlib is not installed.
9090
""",
9191
)
@@ -97,15 +97,15 @@ def _check_blosc():
9797
pass
9898
except ImportError:
9999
def _check_blosc():
100-
raise ValueError('blosc is not installed')
100+
raise ImportError('blosc is not installed')
101101

102102
_check_blosc.__doc__ = dedent(
103103
"""\
104104
Check if blosc is installed.
105105
106106
Raises
107107
------
108-
ValueError
108+
ImportError
109109
Raised when blosc is not installed.
110110
""",
111111
)

0 commit comments

Comments
 (0)