summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Vielsmaier <martin@vielsmaier.net>2020-09-07 16:27:15 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2020-09-10 21:49:36 +0200
commita60bb8b25dcad9ed9e6ef9f16d048a7df1017246 (patch)
tree3b92732d75a5f606d8a9cd35ba33dcb62d1fc75d
parent7d7a9f65daac8673d9c7f7a1c7cc59e8a9fb5129 (diff)
downloadpylint-git-a60bb8b25dcad9ed9e6ef9f16d048a7df1017246.tar.gz
Simplify test for #3584.
-rw-r--r--tests/lint/unittest_lint.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py
index 3a0ef478a..f06adaf0d 100644
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -791,7 +791,6 @@ def test_custom_should_analyze_file():
def test_multiprocessing(jobs):
""" Check that multiprocessing does not create duplicates.
"""
- source_dir = os.path.join(REGRTEST_DATA_DIR)
# For the bug (#3584) to show up we need more than one file with issues
# per process
filenames = [
@@ -810,8 +809,8 @@ def test_multiprocessing(jobs):
linter.set_reporter(reporter)
try:
- sys.path.append(os.path.dirname(source_dir))
- linter.check([os.path.join(source_dir, fname) for fname in filenames])
+ sys.path.append(os.path.dirname(REGRTEST_DATA_DIR))
+ linter.check([os.path.join(REGRTEST_DATA_DIR, fname) for fname in filenames])
finally:
sys.path.pop()