[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
998f8d0a89
commit
061fde8c90
|
@ -283,9 +283,7 @@ class TestAssertionRewrite:
|
||||||
)
|
)
|
||||||
result = pytester.runpytest()
|
result = pytester.runpytest()
|
||||||
assert result.ret == 1
|
assert result.ret == 1
|
||||||
result.stdout.fnmatch_lines(
|
result.stdout.fnmatch_lines(["*AssertionError*The failure message*"])
|
||||||
["*AssertionError*The failure message*"]
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_assertion_message_multiline(self, pytester: Pytester) -> None:
|
def test_assertion_message_multiline(self, pytester: Pytester) -> None:
|
||||||
pytester.makepyfile(
|
pytester.makepyfile(
|
||||||
|
@ -331,9 +329,7 @@ class TestAssertionRewrite:
|
||||||
)
|
)
|
||||||
result = pytester.runpytest()
|
result = pytester.runpytest()
|
||||||
assert result.ret == 1
|
assert result.ret == 1
|
||||||
result.stdout.fnmatch_lines(
|
result.stdout.fnmatch_lines(["*AssertionError: To be escaped: %"])
|
||||||
["*AssertionError: To be escaped: %"]
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_assertion_messages_bytes(self, pytester: Pytester) -> None:
|
def test_assertion_messages_bytes(self, pytester: Pytester) -> None:
|
||||||
pytester.makepyfile("def test_bytes_assertion():\n assert False, b'ohai!'\n")
|
pytester.makepyfile("def test_bytes_assertion():\n assert False, b'ohai!'\n")
|
||||||
|
|
Loading…
Reference in New Issue