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:
parent
0061d9bd3d
commit
acee88a118
|
@ -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*",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue