Skip to content

Commit 4838955

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

testing/python/raises.py

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

testing/python/raises_group.py

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

0 commit comments

Comments
 (0)