From 061fde8c90c4fb0fdcecd6e82be0f29cebb8ee19 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 06:59:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- testing/test_assertrewrite.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 8b2721d9d..cc51d5f00 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -283,9 +283,7 @@ class TestAssertionRewrite: ) result = pytester.runpytest() assert result.ret == 1 - result.stdout.fnmatch_lines( - ["*AssertionError*The failure message*"] - ) + result.stdout.fnmatch_lines(["*AssertionError*The failure message*"]) def test_assertion_message_multiline(self, pytester: Pytester) -> None: pytester.makepyfile( @@ -331,9 +329,7 @@ class TestAssertionRewrite: ) result = pytester.runpytest() assert result.ret == 1 - result.stdout.fnmatch_lines( - ["*AssertionError: To be escaped: %"] - ) + result.stdout.fnmatch_lines(["*AssertionError: To be escaped: %"]) def test_assertion_messages_bytes(self, pytester: Pytester) -> None: pytester.makepyfile("def test_bytes_assertion():\n assert False, b'ohai!'\n")