diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-06-18 09:08:50 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-06-18 09:08:50 +0200 |
commit | a28af843aabbeba6b5ecd8bd658b08476f74aa4d (patch) | |
tree | 406d799ce89e41271aa1c3200af591a9aefbbd96 /tests | |
parent | 36250aa1370a1b0e496185eafed3afa145589d1a (diff) | |
download | pylint-git-fix-crash-parallel-mode-missing-file-path.tar.gz |
Fix a crash in parallel mode when the module's filepath is not setfix-crash-parallel-mode-missing-file-path
Close #3564
Diffstat (limited to 'tests')
-rw-r--r-- | tests/regrtest_data/regression_missing_init_3564/subdirectory/file.py | 0 | ||||
-rw-r--r-- | tests/test_self.py | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/regrtest_data/regression_missing_init_3564/subdirectory/file.py b/tests/regrtest_data/regression_missing_init_3564/subdirectory/file.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/regrtest_data/regression_missing_init_3564/subdirectory/file.py diff --git a/tests/test_self.py b/tests/test_self.py index 34e5d1290..67465b2f2 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -791,3 +791,11 @@ class TestRunTC: [path, "--disable=all", "--enable=duplicate-code"], expected_output=expected_output, ) + + 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") |