Skip to content

Commit acee88a

Browse files
committed
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.
1 parent 0061d9b commit acee88a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testing/test_assertion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,13 @@ def test_many_lines():
668668

669669
result = testdir.runpytest('-vv')
670670
result.stdout.fnmatch_lines([
671-
"*- %d*" % 5,
671+
"* 6*",
672672
])
673673

674674
monkeypatch.setenv('CI', '1')
675675
result = testdir.runpytest()
676676
result.stdout.fnmatch_lines([
677-
"*- %d*" % 5,
677+
"* 6*",
678678
])
679679

680680

0 commit comments

Comments
 (0)