File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ Test your code!
12
12
13
13
Pylint is very well tested and has a high code coverage. New contributions are not accepted
14
14
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
+
15
23
Pylint uses two types of tests: unittests and functional tests.
16
24
17
25
- The unittests can be found in the ``/pylint/test `` directory and they can
Original file line number Diff line number Diff line change @@ -47,12 +47,11 @@ def __init__(
47
47
rc_file : Union [Path , str ] = PYLINTRC
48
48
try :
49
49
rc_file = test_file .option_file
50
- except NoFileError :
51
- pass
52
- finally :
53
50
self ._linter .disable ("suppressed-message" )
54
51
self ._linter .disable ("locally-disabled" )
55
52
self ._linter .disable ("useless-suppression" )
53
+ except NoFileError :
54
+ pass
56
55
57
56
try :
58
57
args = [test_file .source ]
You can’t perform that action at this time.
0 commit comments