We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--xfails-file
1 parent dad7731 commit 05b78d3Copy full SHA for 05b78d3
conftest.py
@@ -3,6 +3,7 @@
3
import argparse
4
import warnings
5
import os
6
+import re
7
8
from hypothesis import settings
9
from hypothesis.errors import InvalidArgument
@@ -141,7 +142,10 @@ def check_id_match(id_, pattern):
141
142
if id_.split("[", maxsplit=2)[0] == pattern:
143
return True
144
- return False
145
+ try:
146
+ return bool(re.match(pattern, id_))
147
+ except re.error: # Not a regular expression
148
+ return False
149
150
151
def pytest_collection_modifyitems(config, items):
0 commit comments