Skip to content

Commit

Permalink
Add '__tracebackhide__ = True' so the traceback is manageable
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Nov 23, 2021
1 parent fcd2641 commit 297a4fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/primer/test_primer_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def test_primer_external_packages_no_crash(
package: PackageToLint,
caplog: LogCaptureFixture,
) -> None:
__tracebackhide__ = True # pylint: disable=unused-variable
TestPrimer._primer_test(package, caplog)

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions tests/primer/test_primer_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_primer_stdlib_no_crash(
test_module_location: str, test_module_name: str, capsys: CaptureFixture
) -> None:
"""Test that pylint does not produces any crashes or fatal errors on stdlib modules"""
__tracebackhide__ = True # pylint: disable=unused-variable
os.chdir(test_module_location)
with _patch_stdout(io.StringIO()):
try:
Expand Down

0 comments on commit 297a4fb

Please sign in to comment.