Skip to content

Test fixes for PR 87 - #1

Merged
funkey merged 2 commits into
funkey:masterfrom
jakirkham:tst_fixes_pr_87
Oct 19, 2018
Merged

funkey merged 2 commits into
funkey:masterfrom
jakirkham:tst_fixes_pr_87

Conversation

@jakirkham

Copy link
Copy Markdown

Adds a couple test fixes for PR ( zarr-developers#87 ) as discussed in that PR.

Python 3 supports keyword arguments to `zlib.compressobj`. However it
seems Python 2 does not. Fortunately Python 2 does support the arguments
that were supplied here, just as conditional arguments. This converts
the function into one using positional arguments, which should smooth
over the Python 2/3 differences.
As this PR includes a fix for `gzip` handling (namely that it differs
from `zlib` by a header), this test is no longer accurate. So we correct
it to use the correct ID.
@@ -55,7 +55,7 @@ def test_repr():


def test_alias():

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not drop this test entirely if 'gzip' is no longer an alias for 'zlib'?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I guess that would make sense.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely. That was the other route I was debating, but wanted you to confirm. 😄

@funkey
funkey merged commit 0e237d3 into funkey:master Oct 19, 2018
@jakirkham
jakirkham deleted the tst_fixes_pr_87 branch October 19, 2018 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants