File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -367,9 +367,7 @@ def test_raises_context_manager_with_kwargs(self):
367367 def test_expected_exception_is_not_a_baseexception (self ) -> None :
368368 with pytest .raises (
369369 TypeError ,
370- match = wrap_escape (
371- "Expected a BaseException type, but got 'str'"
372- ),
370+ match = wrap_escape ("Expected a BaseException type, but got 'str'" ),
373371 ):
374372 with pytest .raises ("hello" ): # type: ignore[call-overload]
375373 pass # pragma: no cover
@@ -388,9 +386,7 @@ class NotAnException:
388386
389387 with pytest .raises (
390388 TypeError ,
391- match = wrap_escape (
392- "Expected a BaseException type, but got 'str'"
393- ),
389+ match = wrap_escape ("Expected a BaseException type, but got 'str'" ),
394390 ):
395391 with pytest .raises (("hello" , NotAnException )): # type: ignore[arg-type]
396392 pass # pragma: no cover
Original file line number Diff line number Diff line change @@ -1077,9 +1077,7 @@ def test_raisesexc() -> None:
10771077 RaisesExc () # type: ignore[call-overload]
10781078 with pytest .raises (
10791079 ValueError ,
1080- match = wrap_escape (
1081- "Expected a BaseException type, but got 'object'"
1082- ),
1080+ match = wrap_escape ("Expected a BaseException type, but got 'object'" ),
10831081 ):
10841082 RaisesExc (object ) # type: ignore[type-var]
10851083
You can’t perform that action at this time.
0 commit comments