From 6352cf23742c53f3312f3a004c762a077bdb73d7 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 24 Mar 2019 11:15:40 +0100 Subject: [PATCH] test_implicit_bad_repr1: harden/cleanup --- testing/test_session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_session.py b/testing/test_session.py index e5eb081d4..b3aaf571d 100644 --- a/testing/test_session.py +++ b/testing/test_session.py @@ -126,14 +126,14 @@ class SessionTests(object): ) reprec = testdir.inline_run(p) passed, skipped, failed = reprec.listoutcomes() - assert len(failed) == 1 + assert (len(passed), len(skipped), len(failed)) == (1, 0, 1) out = failed[0].longrepr.reprcrash.message assert ( out.find( """[Exception("Ha Ha fooled you, I'm a broken repr().") raised in repr()]""" ) != -1 - ) # ' + ) def test_skip_file_by_conftest(self, testdir): testdir.makepyfile(