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.
This commit is contained in:
Matthew Duck 2016-10-16 20:54:51 +01:00
parent 0061d9bd3d
commit acee88a118
1 changed files with 2 additions and 2 deletions

View File

@ -668,13 +668,13 @@ class TestTruncateExplanation:
result = testdir.runpytest('-vv') result = testdir.runpytest('-vv')
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines([
"*- %d*" % 5, "* 6*",
]) ])
monkeypatch.setenv('CI', '1') monkeypatch.setenv('CI', '1')
result = testdir.runpytest() result = testdir.runpytest()
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines([
"*- %d*" % 5, "* 6*",
]) ])