Skip to content

Commit 159c488

Browse files
zaplaplnicoddemus
andauthored
Update testing/test_terminal.py
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent d24a30c commit 159c488

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

testing/test_terminal.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,9 +1598,10 @@ def test_fail():
15981598
"""
15991599
)
16001600
result = pytester.runpytest("--tb=line")
1601-
result.stdout.fnmatch_lines(["*- Captured stdout call -*"])
1602-
s = result.stdout.str()
1603-
assert output_to_capture in s
1601+
result.stdout.fnmatch_lines([
1602+
"*- Captured stdout call -*",
1603+
output_to_capture
1604+
])
16041605

16051606
def test_tb_crashline(self, pytester: Pytester, option) -> None:
16061607
p = pytester.makepyfile(

0 commit comments

Comments
 (0)