diff --git a/tests/parse/test_error.py b/tests/parse/test_error.py index e6cd2cc..96177ec 100644 --- a/tests/parse/test_error.py +++ b/tests/parse/test_error.py @@ -20,8 +20,8 @@ # Draws a strategy, with 25% of draws being None @composite def draw_maybe(draw, strategy): - chance = draw(integers(min_value=0, max_value=4)) - if chance == 0: + chance = draw(integers(min_value=1, max_value=4)) + if chance == 1: return None else: return draw(strategy)