Add documentation to test for tracebackhide

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Felix Hofstätter 2023-03-12 11:06:16 +01:00 committed by GitHub
parent 1765f99c7c
commit 332cb13bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,7 @@
def test_tbh_chained(testdir):
"""
Ensure chained exceptions whose frames contain "__tracebackhide__" are not shown (#1904).
"""
p = testdir.makepyfile(
"""
import pytest