diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-21 16:26:13 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-24 10:14:23 +0100 |
commit | c136c5eac6c01e33914db7b3674c49161defa324 (patch) | |
tree | b184518d4527bad92da0e034940312a2bf4f2034 /tests/primer/test_primer_stdlib.py | |
parent | 6e44febc327defc28246f01d9c4027fbd33639a8 (diff) | |
download | pylint-git-add-primer-tests.tar.gz |
Add primer tests, (running pylint on external libs during tests)add-primer-tests
In order to anticipate crash/fatal messages, false positives are harder
to anticipate.
Add '__tracebackhide__ = True' so the traceback is manageable
Diffstat (limited to 'tests/primer/test_primer_stdlib.py')
-rw-r--r-- | tests/primer/test_primer_stdlib.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/primer/test_primer_stdlib.py b/tests/primer/test_primer_stdlib.py index fdc16adcd..48264e6df 100644 --- a/tests/primer/test_primer_stdlib.py +++ b/tests/primer/test_primer_stdlib.py @@ -39,14 +39,15 @@ MODULES_TO_CHECK = [ MODULES_NAMES = [m[1] for m in MODULES_TO_CHECK] -@pytest.mark.primer_stdlib +@pytest.mark.primer @pytest.mark.parametrize( ("test_module_location", "test_module_name"), MODULES_TO_CHECK, ids=MODULES_NAMES ) -def test_lib_module_no_crash( +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: |