From 14a4dd0697db7be6043d0715c5b44e9d004dd73c Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Fri, 12 Aug 2016 23:31:38 +0100 Subject: [PATCH] Extend test to verify longrepr in stdout --- testing/test_unittest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/test_unittest.py b/testing/test_unittest.py index 39a31cfea..1390ed95c 100644 --- a/testing/test_unittest.py +++ b/testing/test_unittest.py @@ -616,6 +616,7 @@ def test_unittest_expected_failure_for_passing_test_is_fail(testdir): result.stdout.fnmatch_lines([ "*FAILURES*", "*MyTestCase*test_passing_test_is_fail*", + "*Unexpected success*", "*1 failed*", ]) assert result.ret == 1