Skip to content

Commit e5f4c47

Browse files
committed
test_assertion: minor cleanup
1 parent 05bfe73 commit e5f4c47

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testing/test_assertion.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ def test_frozenzet(self):
490490
assert len(expl) > 1
491491

492492
def test_Sequence(self):
493-
494493
if not hasattr(collections_abc, "MutableSequence"):
495494
pytest.skip("cannot import MutableSequence")
496495
MutableSequence = collections_abc.MutableSequence
@@ -806,9 +805,6 @@ def test_fmt_multi_newline_before_where(self):
806805

807806

808807
class TestTruncateExplanation:
809-
810-
""" Confirm assertion output is truncated as expected """
811-
812808
# The number of lines in the truncation explanation message. Used
813809
# to calculate that results have the expected length.
814810
LINES_IN_TRUNCATION_MSG = 2
@@ -969,7 +965,13 @@ def test_hello():
969965
)
970966
result = testdir.runpytest()
971967
result.stdout.fnmatch_lines(
972-
["*def test_hello():*", "*assert x == y*", "*E*Extra items*left*", "*E*50*"]
968+
[
969+
"*def test_hello():*",
970+
"*assert x == y*",
971+
"*E*Extra items*left*",
972+
"*E*50*",
973+
"*= 1 failed in*",
974+
]
973975
)
974976

975977

0 commit comments

Comments
 (0)