Skip to content

Commit

Permalink
Fix flaky test_reusable_strategies_are_all_reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Mar 24, 2019
1 parent 71e13b9 commit ee532d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypothesis-python/tests/cover/test_reusable_values.py
Expand Up @@ -21,7 +21,7 @@

import hypothesis.strategies as st
from hypothesis import example, given, reject
from hypothesis.errors import InvalidArgument
from hypothesis.errors import HypothesisDeprecationWarning, InvalidArgument

base_reusable_strategies = (
st.text(),
Expand Down Expand Up @@ -65,7 +65,7 @@ def reusable():
def test_reusable_strategies_are_all_reusable(s):
try:
s.validate()
except InvalidArgument:
except (InvalidArgument, HypothesisDeprecationWarning):
reject()

assert s.has_reusable_values
Expand Down

0 comments on commit ee532d6

Please sign in to comment.