diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-06-18 09:08:50 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-06-20 12:15:52 +0200 |
commit | da91a9ad743d145824f3966789bcb2dcaf5484db (patch) | |
tree | aee193d9708aa4d2f5a4f5049051ff42b3f7d4be /tests/test_self.py | |
parent | 4e2529cebbc0efc4f6bb54902fc9eadf9052f0a3 (diff) | |
download | pylint-git-2.5.tar.gz |
Fix a crash in parallel mode when the module's filepath is not set2.5
Close #3564
Diffstat (limited to 'tests/test_self.py')
-rw-r--r-- | tests/test_self.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_self.py b/tests/test_self.py index 6c27fd6cd..11399ab5c 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -783,3 +783,11 @@ class TestRunTC: path = join(HERE, "regrtest_data", "unused_variable.py") expected = "Your code has been rated at 7.50/10" self._test_output([path, "--jobs=2", "-ry"], expected_output=expected) + + def test_regression_parallel_mode_without_filepath(self): + # Test that parallel mode properly passes filepath + # https://github.com/PyCQA/pylint/issues/3564 + path = join( + HERE, "regrtest_data", "regression_missing_init_3564", "subdirectory/" + ) + self._test_output([path, "-j2"], expected_output="No such file or directory") |