Skip to content

Commit e68ae41

Browse files
committed
document fix testing_pylintrc now showing issue pylint-dev#5687
1 parent 0903751 commit e68ae41

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

doc/development_guide/testing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ Test your code!
1212

1313
Pylint is very well tested and has a high code coverage. New contributions are not accepted
1414
unless they include tests.
15+
16+
Before you start testing your code, you need to install your source-code package locally.
17+
The best way to do so is running this terminal command:
18+
19+
python setup.py develop
20+
21+
This ensures your testing environment is similar to Pylint's testing environment on GitHub.
22+
1523
Pylint uses two types of tests: unittests and functional tests.
1624

1725
- The unittests can be found in the ``/pylint/test`` directory and they can

pylint/testutils/lint_module_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ def __init__(
4747
rc_file: Union[Path, str] = PYLINTRC
4848
try:
4949
rc_file = test_file.option_file
50-
except NoFileError:
51-
pass
52-
finally:
5350
self._linter.disable("suppressed-message")
5451
self._linter.disable("locally-disabled")
5552
self._linter.disable("useless-suppression")
53+
except NoFileError:
54+
pass
5655

5756
try:
5857
args = [test_file.source]

0 commit comments

Comments
 (0)