Skip to content

Commit 86e9ae3

Browse files
committed
pytester: assert_outcomes: use/set __tracebackhide__
1 parent b352e34 commit 86e9ae3

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)