File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,14 @@ def test_unimportable_modules():
109109
110110 with pytest .raises (
111111 ThingImportFailure ,
112- match = "\[RuntimeError\] This module should not be importable!" ,
112+ match = r "\[RuntimeError\] This module should not be importable!" ,
113113 ):
114114 # This checks RuntimErrors get reported with a single error
115115 ThingConfig (cls = "tests.unimportable.runtimeerror:SomeClass" )
116116
117117 with pytest .raises (
118118 ThingImportFailure ,
119- match = "\[ValueError\] This module should not be importable due to ValueError!" ,
119+ match = r "\[ValueError\] This module should not be importable due to ValueError!" ,
120120 ):
121121 # This checks ValueErrors get reported with a single error
122122 # rather than getting swallowed by a ValidationError
You can’t perform that action at this time.
0 commit comments