Skip to content

Commit 181e7c7

Browse files
committed
Catch nested set warning
1 parent e6721e6 commit 181e7c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hypothesis_jsonschema/_from_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def regex_patterns(draw: Any) -> str:
306306
assert isinstance(result, str)
307307
try:
308308
re.compile(result)
309-
except re.error:
309+
except (re.error, FutureWarning):
310310
assume(False)
311311
return result
312312

0 commit comments

Comments
 (0)