pytester: assert_outcomes: use/set __tracebackhide__ (#6172)

This commit is contained in:
Daniel Hahler 2019-11-12 23:07:58 +01:00 committed by GitHub
commit e2022a6d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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),