File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -194,15 +194,15 @@ def test_no_raise_message(self) -> None:
194194 try :
195195 pytest .raises (ValueError , int , "0" )
196196 except pytest .fail .Exception as e :
197- assert e .msg == f "DID NOT RAISE ValueError"
197+ assert e .msg == "DID NOT RAISE ValueError"
198198 else :
199199 assert False , "Expected pytest.raises.Exception"
200200
201201 try :
202202 with pytest .raises (ValueError ):
203203 pass
204204 except pytest .fail .Exception as e :
205- assert e .msg == f "DID NOT RAISE ValueError"
205+ assert e .msg == "DID NOT RAISE ValueError"
206206 else :
207207 assert False , "Expected pytest.raises.Exception"
208208
Original file line number Diff line number Diff line change @@ -1110,9 +1110,7 @@ def test_raisesexc() -> None:
11101110 with pytest .raises (
11111111 # FIXME: do we want repr(type) or type.__name__ ?
11121112 Failed ,
1113- match = wrap_escape (
1114- "DID NOT RAISE any of (ValueError, TypeError)"
1115- ),
1113+ match = wrap_escape ("DID NOT RAISE any of (ValueError, TypeError)" ),
11161114 ):
11171115 with RaisesExc ((ValueError , TypeError )):
11181116 ...
You can’t perform that action at this time.
0 commit comments