Skip to content

Commit 70f54a8

Browse files
committed
pytest: Do not print traceback on PEP8 test fail
1 parent 626398d commit 70f54a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/tests/test_coding_standards.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def assert_pep8_conformance(module=matplotlib, exclude_files=None,
100100
The file should be a line separated list of filenames/directories
101101
as can be passed to the "pep8" tool's exclude list.
102102
"""
103+
__tracebackhide__ = True
103104

104105
if not HAS_PEP8:
105106
raise SkipTest('The pep8 tool is required for this test')
@@ -156,6 +157,8 @@ def assert_pep8_conformance(module=matplotlib, exclude_files=None,
156157

157158

158159
def test_pep8_conformance_installed_files():
160+
__tracebackhide__ = True
161+
159162
exclude_files = ['_delaunay.py',
160163
'_image.py',
161164
'_tri.py',

0 commit comments

Comments
 (0)