pytester: assert_outcomes: use/set __tracebackhide__

This commit is contained in:
Daniel Hahler 2019-11-12 15:28:36 +01:00
parent b352e34938
commit 86e9ae39f0
1 changed files with 2 additions and 1 deletions

View File

@ -441,8 +441,9 @@ class RunResult:
) -> None: ) -> None:
"""Assert that the specified outcomes appear with the respective """Assert that the specified outcomes appear with the respective
numbers (0 means it didn't occur) in the text output from a test run. numbers (0 means it didn't occur) in the text output from a test run.
""" """
__tracebackhide__ = True
d = self.parseoutcomes() d = self.parseoutcomes()
obtained = { obtained = {
"passed": d.get("passed", 0), "passed": d.get("passed", 0),