Skip to content

Commit 6352cf2

Browse files
committed
test_implicit_bad_repr1: harden/cleanup
1 parent 7a6bcc3 commit 6352cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/test_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ def test_implicit_bad_repr1(self):
126126
)
127127
reprec = testdir.inline_run(p)
128128
passed, skipped, failed = reprec.listoutcomes()
129-
assert len(failed) == 1
129+
assert (len(passed), len(skipped), len(failed)) == (1, 0, 1)
130130
out = failed[0].longrepr.reprcrash.message
131131
assert (
132132
out.find(
133133
"""[Exception("Ha Ha fooled you, I'm a broken repr().") raised in repr()]"""
134134
)
135135
!= -1
136-
) # '
136+
)
137137

138138
def test_skip_file_by_conftest(self, testdir):
139139
testdir.makepyfile(

0 commit comments

Comments
 (0)