Skip to content

Commit de713cb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5c4e99b commit de713cb

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

testing/python/raises.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

testing/python/raises_group.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)