From 86e9ae39f0ff0f16179d3e1d25674445432cfaef Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 12 Nov 2019 15:28:36 +0100 Subject: [PATCH] pytester: assert_outcomes: use/set __tracebackhide__ --- src/_pytest/pytester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 6b45e077b..9f3b4d8ab 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -441,8 +441,9 @@ class RunResult: ) -> None: """Assert that the specified outcomes appear with the respective numbers (0 means it didn't occur) in the text output from a test run. - """ + __tracebackhide__ = True + d = self.parseoutcomes() obtained = { "passed": d.get("passed", 0),