File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def get_max_test_id_length() -> int:
18
18
def get_test_id_regex () -> None | re .Pattern [str ]:
19
19
"""Return regex to use for checking test ids."""
20
20
if int (os .environ .get ("PYTEST_CHECK_TEST_ID_REGEX" , "1" )):
21
- return re .compile (r"^[\w_\-\.]+$" )
21
+ return re .compile (r"^[\w_\-\.: ]+$" )
22
22
return None
23
23
24
24
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def test_a(some: str):
60
60
result = pytester .runpytest_inprocess ("--collect-only" , p1 )
61
61
if not disable :
62
62
assert (
63
- "Test <Function test_a[invalid name]> has an id that does not match our safe pattern '^[\\ w_\\ -\\ .]+$' for use with a terminal."
63
+ "Test <Function test_a[invalid name]> has an id that does not match our safe pattern '^[\\ w_\\ -\\ .: ]+$' for use with a terminal."
64
64
in result .stderr .lines
65
65
)
66
66
assert result .ret == rc
You can’t perform that action at this time.
0 commit comments