summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-07-20 06:50:43 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-07-20 05:32:28 -0700
commitde38a0e74a8683a3d3381038aeee4d226cc5b714 (patch)
treea9da9b7aa46dbe051e2c4b66e5d0f7d74233c972 /tests/coveragetest.py
parent9f8d8d9aa8997c792765d0c553890fb2c3c67bdd (diff)
downloadpython-coveragepy-git-de38a0e74a8683a3d3381038aeee4d226cc5b714.tar.gz
test: don't report this function in pytest tracebacks
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index e5543a0b..8541ed28 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -220,6 +220,7 @@ class CoverageTest(
warnings.
"""
+ __tracebackhide__ = True
saved_warnings = []
def capture_warning(msg, slug=None, once=False): # pylint: disable=unused-argument
"""A fake implementation of Coverage._warn, to capture warnings."""