-
Notifications
You must be signed in to change notification settings - Fork 450
[MRG] FIX: issue with py27 when lz4 is not installed #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cef3abb
072c037
4b71a08
e152cf3
d33fb08
960ef7d
aabaece
7b10739
acdbdb3
e800003
f4e788f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -435,7 +435,9 @@ def dump(value, filename, compress=0, protocol=None, cache_size=None): | |
| else: | ||
| compress_level = compress | ||
|
|
||
| if compress_method == 'lz4' and lz4 is None: | ||
| # LZ4 compression is only supported and installation checked with | ||
| # python 3+. | ||
| if compress_method == 'lz4' and lz4 is None and PY3_OR_LATER: | ||
| raise ValueError(LZ4_NOT_INSTALLED_ERROR) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels weird to have different exception here. Can't we raise
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the clarification. |
||
|
|
||
| if (compress_level is not None and | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add coverage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To cover this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok