-
Notifications
You must be signed in to change notification settings - Fork 6
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
adding round trip test for lzma #16
Conversation
Travis failed but I have run the tests locally right after I have clone the repo (before changing anything) and it failed, so hope it's not because of me 😛 |
@Cheukting I believe this is failing because of the formatting check. If you run |
Yes, please do! You can actually use |
I break it into 2 cases, I think that's easier than using assume. However, I got this error:
Which I don't understand when I look at the source code: https://github.com/python/cpython/blob/c1f1ddf30a595c2bfa3c06e54fb03fa212cd28b5/Lib/zipfile.py#L612 Can't see where the arguments are taken here. |
Nice, that looks good. The 'bug' in your test is that As a style issue, I think it would be easier for readers to compare these two tests if we pass the same arguments to each. That means adding |
Main hint is to |
I suggest using After that I'd make the strategy less general, until the test passes, and just leave a |
Yes, I can rewrite the filter strategy. Will try another push today. |
I have rewritten the filter strategy, will try to loosen the test to make it pass. |
-U | ||
git+https://github.com/Zac-HD/hypothesmith.git |
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.
Rebase on master to get rid of this bit.
Cross-reference: HypothesisWorks/hypothesis#2430 |
refactor again, will need some thought on the test cases. Will continue later today |
🎉 Thanks @Cheukting! |
Adding the round trip test for lzma. Only option that is testing is the compresslever (preset) however, according to the documentation there are other options such as format=FORMAT_XZ, check=-1 Shall I add that? I know I can use st.build to add them (cannot use sampled from because some options are only available to certain settings)