Skip to content

Commit 4d599c4

Browse files
committed
chore: Use raw string for pytest.raises match regex
1 parent cef6ab7 commit 4d599c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_lazy_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_stub_loading_errors(tmp_path):
215215

216216
stub2 = tmp_path / "stub2.pyi"
217217
stub2.write_text("from .mod import *\n")
218-
with pytest.raises(ValueError, match=".*does not support star import"):
218+
with pytest.raises(ValueError, match=r".*does not support star import"):
219219
lazy.attach_stub("name", str(stub2))
220220

221221

0 commit comments

Comments
 (0)