[pre-commit.ci] pre-commit autoupdate (#8547)

* [pre-commit.ci] pre-commit autoupdate

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
pre-commit-ci[bot]
2021-04-14 12:49:09 +03:00
committed by GitHub
parent 4b214a6049
commit d200598de9
20 changed files with 30 additions and 38 deletions

View File

@@ -144,7 +144,7 @@ class TestRaises:
try:
pytest.raises(ValueError, int, "0")
except pytest.fail.Exception as e:
assert e.msg == "DID NOT RAISE {}".format(repr(ValueError))
assert e.msg == f"DID NOT RAISE {repr(ValueError)}"
else:
assert False, "Expected pytest.raises.Exception"
@@ -152,7 +152,7 @@ class TestRaises:
with pytest.raises(ValueError):
pass
except pytest.fail.Exception as e:
assert e.msg == "DID NOT RAISE {}".format(repr(ValueError))
assert e.msg == f"DID NOT RAISE {repr(ValueError)}"
else:
assert False, "Expected pytest.raises.Exception"