Skip to content

Add very simple Hypothesis based tests#13

Merged
audreyfeldroy merged 1 commit intobinaryornot:masterfrom
DRMacIver:add-hypothesis
Aug 19, 2015
Merged

Add very simple Hypothesis based tests#13
audreyfeldroy merged 1 commit intobinaryornot:masterfrom
DRMacIver:add-hypothesis

Conversation

@DRMacIver
Copy link
Copy Markdown
Contributor

This is essentially a "getting started" test. All it does is assert
that the is_binary function should never crash regardless of what's
in the file.

There should be more interesting things to test here, but most of
the additional things I've tried fail and it's unclear that these
are really bugs so much as edge cases in the heuristic.

Note: This is the test that caught issue #12.

@DRMacIver
Copy link
Copy Markdown
Contributor Author

Hm. That failure is weird. Python is distributed as source, and it's certainly supposed to work (and is tested!) on windows on 2.7, so I can't think why appveyor wouldn't be finding it.

@DRMacIver
Copy link
Copy Markdown
Contributor Author

I've no good ideas there. I'd suggest restarting that one appveyor job to see if it was a transient error in downloading something (though it doesn't look like it) and otherwise I'll take a look at this problem tomorrow or another time and you shouldn't worry about it. Sorry about that!

@pydanny
Copy link
Copy Markdown
Collaborator

pydanny commented Aug 18, 2015

@DRMacIver It appears to have been a small problem with the setuptools via pip. Should work now. Can you rebase your pull request in order to make it trigger the AppVeyor check?

This is essentially a "getting started" test. All it does is assert
that the is_binary function should never crash regardless of what's
in the file.

There should be more interesting things to test here, but most of
the additional things I've tried fail and it's unclear that these
are really bugs so much as edge cases in the heuristic.

Note: This is the test that caught ssue #12.
@DRMacIver
Copy link
Copy Markdown
Contributor Author

Sure, done. Thanks for fixing that.

audreyfeldroy added a commit that referenced this pull request Aug 19, 2015
Add very simple Hypothesis based tests
@audreyfeldroy audreyfeldroy merged commit d301545 into binaryornot:master Aug 19, 2015
@audreyfeldroy
Copy link
Copy Markdown
Collaborator

This is so cool, thanks so much @DRMacIver!

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