From acee88a118544b74a4cbb9f57ff6a6a8ffb70516 Mon Sep 17 00:00:00 2001 From: Matthew Duck Date: Sun, 16 Oct 2016 20:54:51 +0100 Subject: [PATCH] Fix truncation tests: pyruntest() match Fix issue with truncation tests for -vv and CI, where the test for non-truncated output would return a positive match even on truncated output. --- testing/test_assertion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 1c47440c3..dcb0fbf35 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -668,13 +668,13 @@ class TestTruncateExplanation: result = testdir.runpytest('-vv') result.stdout.fnmatch_lines([ - "*- %d*" % 5, + "* 6*", ]) monkeypatch.setenv('CI', '1') result = testdir.runpytest() result.stdout.fnmatch_lines([ - "*- %d*" % 5, + "* 6*", ])