Skip to content

Commit

Permalink
Update test_regex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Apr 17, 2023
1 parent 25f7a3e commit c1799dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hypothesis-python/tests/nocover/test_regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def conservative_regex(draw):
def test_conservative_regex_are_correct_by_construction(data):
pattern = re.compile(data.draw(CONSERVATIVE_REGEX), flags=data.draw(FLAGS))
result = data.draw(base_regex_strategy(pattern))
# We'll skip "capital I with dot above" due to awful casefolding behaviour
assume("İ" not in pattern.pattern + result)
assert pattern.search(result) is not None


Expand Down

0 comments on commit c1799dd

Please sign in to comment.