Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/re_compile_except.txt

raw
1 # This test code was written by the `hypothesis.extra.ghostwriter` module
2 # and is provided under the Creative Commons Zero public domain dedication.
3
4 import re
5 from hypothesis import given, reject, strategies as st
6
7
8 @given(pattern=st.text(), flags=st.just(0))
9 def test_fuzz_compile(pattern, flags):
10 try:
11 re.compile(pattern=pattern, flags=flags)
12 except re.error:
13 reject()