-
Notifications
You must be signed in to change notification settings - Fork 587
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
Migrate explain
phase to the typed choice sequence
#4162
Conversation
hmm, not sure if this failure is related yet FAILED whole_repo_tests/test_mypy.py::test_stateful_bundle_generic_type - AssertionError:
assert 0 == 1
+ where 0 = len([])
+ where [] = <built-in method splitlines of str object at 0x7f80b1108030>()
+ where <built-in method splitlines of str object at 0x7f80b1108030> = ''.splitlines |
I think I've seen that flake before; probably we should just add a few retries in case the command returns empty string? I also noticed that it looks like a subsequent mypy upgrade has this test passing, so we can remove the xfail 🙂 |
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.
Woohoo!
# a draw_bits call which straddles the end of our prefix has a slightly | ||
# different code branch. | ||
def test(data): | ||
# float consumes draw_bits(64) | ||
data.draw_float() | ||
|
||
with deterministic_PRNG(): | ||
runner = ConjectureRunner(test, settings=TEST_SETTINGS) | ||
d = runner.cached_test_function(bytes(10), extend=100) | ||
assert d.status == Status.VALID |
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.
drawing one float uses <10 bytes, I think?
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.
It's more - a bunch for the sampler, 1 for the sign, and 8 for the value. I only added this test because the branch mentioned in the comments was uncovered, so I'm pretty confident this test does indeed execute that branch.
Closes #3864. Take two of #4160 due to git weirdness.