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

Various test cleanups for Crosshair integration #4090

Merged
merged 5 commits into from
Aug 24, 2024

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Aug 24, 2024

Extracted from #4034 to make that smaller + easier to review again 🙂

Copy link
Member

@tybug tybug left a comment

Choose a reason for hiding this comment

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

very happy to get rid of deadline= in minimal 🙂

Comment on lines +115 to 117
if current_build_context().data.provider.avoid_realization:
pytest.skip("symbolic backends can filter efficiently!")

Copy link
Member

Choose a reason for hiding this comment

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

Should we instead hardcode a check against the crosshair backend, or only run on the hypothesis backend? avoid_realization is correlated with but not quite the same as a backend filtering efficiently.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm basically assuming that "avoid_realization means symbolic execution", so while it's not the same thing I think it's likely to be the right call.

@tybug
Copy link
Member

tybug commented Aug 24, 2024

re:

FAILED tests/quality/test_shrink_quality.py::test_sum_of_pair - assert (158, 843) == (1, 1000)

I've seen this fail with derandomize=False when benchmarking shrinking, so I'm fairly sure this is a latent bug exposed by changing the source code of minimal and therefore the random seed. Didn't look into its cause.

@Zac-HD Zac-HD merged commit 3e8e8b3 into HypothesisWorks:master Aug 24, 2024
58 checks passed
@Zac-HD Zac-HD deleted the test-cleanups branch August 24, 2024 22:53
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.

2 participants