summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-05-22 10:47:12 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2019-06-01 12:42:36 +0200
commit4b015e7886178eff9f4f34740029eba9835a340c (patch)
tree80d68f6abe9a730b75f5abcfa108a9f2685964d7
parentc913a690d26bd481972a20b4d6eb2574a77d7be6 (diff)
downloadpylint-git-4b015e7886178eff9f4f34740029eba9835a340c.tar.gz
Use the absolute paths for tests and adapt the codes to the right ones. Close #2129
(cherry picked from commit bf258d2d9a30385f62e4c77158fa0427134e7603)
-rw-r--r--pylint/test/test_self.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py
index 9e31b7c49..0a4377dbb 100644
--- a/pylint/test/test_self.py
+++ b/pylint/test/test_self.py
@@ -89,7 +89,7 @@ class MultiReporter(BaseReporter):
class TestRunTC(object):
- def _runtest(self, args, reporter=None, out=None, code=28):
+ def _runtest(self, args, reporter=None, out=None, code=None):
if out is None:
out = six.StringIO()
pylint_code = self._run_pylint(args, reporter=reporter, out=out)
@@ -211,8 +211,9 @@ class TestRunTC(object):
out=strio, code=28)
def test_parallel_execution(self):
- self._runtest(['-j 2', 'pylint/test/functional/arguments.py',
- 'pylint/test/functional/bad_continuation.py'], code=18)
+ self._runtest(['-j 2',
+ join(HERE, 'functional/arguments.py'),
+ join(HERE, 'functional/bad_continuation.py')], code=18)
def test_parallel_execution_missing_arguments(self):
self._runtest(['-j 2', 'not_here', 'not_here_too'], code=1)