Skip to content
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

Tidy some tests up in order to update hypothesis #103

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

SamHames
Copy link
Contributor

@SamHames SamHames commented Jan 3, 2024

While trying to get #102 working I noticed that an intermittent segfault happening that was unclear on inspecting the logs. While investigating it seemed easy to update the test reporting and remove the upper bound pin on hypothesis, so here we are.

This PR refactors the test cases to make more recent hypothesis happy, and makes sure that all individual test cases being run are reported so even segfaults can be inspected.

Simplify tests using the builtin operator module
to remove some lambdas. Refactor all operator
test cases so that the @given decorator is applied
only to test methods - this removes the do_test*
methods and lets Hypothesis work with the out of
the box configuration.
Adding -v to test reporting and setting the PYTHONFAULTHANDLER
environment variable in tox. This will enable better reporting
of failures, even when the failure is a segfault.
@Ezibenroc
Copy link
Owner

Great, thanks a lot!

@Ezibenroc Ezibenroc merged commit d4dac1f into Ezibenroc:master Jan 8, 2024
18 checks passed
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.

None yet

2 participants