Skip to content

Commit e2022a6

Browse files
authored
pytester: assert_outcomes: use/set __tracebackhide__ (#6172)
2 parents 1b84f09 + 86e9ae3 commit e2022a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/pytester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,9 @@ def assert_outcomes(
441441
) -> None:
442442
"""Assert that the specified outcomes appear with the respective
443443
numbers (0 means it didn't occur) in the text output from a test run.
444-
445444
"""
445+
__tracebackhide__ = True
446+
446447
d = self.parseoutcomes()
447448
obtained = {
448449
"passed": d.get("passed", 0),

0 commit comments

Comments
 (0)