Skip to content

Commit 297a4fb

Browse files
Add '__tracebackhide__ = True' so the traceback is manageable
1 parent fcd2641 commit 297a4fb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/primer/test_primer_external.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_primer_external_packages_no_crash(
3838
package: PackageToLint,
3939
caplog: LogCaptureFixture,
4040
) -> None:
41+
__tracebackhide__ = True # pylint: disable=unused-variable
4142
TestPrimer._primer_test(package, caplog)
4243

4344
@staticmethod

tests/primer/test_primer_stdlib.py

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def test_primer_stdlib_no_crash(
4747
test_module_location: str, test_module_name: str, capsys: CaptureFixture
4848
) -> None:
4949
"""Test that pylint does not produces any crashes or fatal errors on stdlib modules"""
50+
__tracebackhide__ = True # pylint: disable=unused-variable
5051
os.chdir(test_module_location)
5152
with _patch_stdout(io.StringIO()):
5253
try:

0 commit comments

Comments
 (0)