diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-12-27 16:22:55 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-12-27 16:25:24 +0100 |
commit | 4752c279fbcbca42bac0c24b13c069b0893f05ef (patch) | |
tree | 98ff5c649407a8dcc46d9f276d54a407d5310743 | |
parent | a91bbd56efadf9a39c5fa2c5988d35cd31ccbdd8 (diff) | |
download | pylint-git-4752c279fbcbca42bac0c24b13c069b0893f05ef.tar.gz |
Improve the test suitepylint-1.9.4
Use the right files and the right codes.
-rw-r--r-- | pylint/test/test_self.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index 481d76108..9e31b7c49 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -19,16 +19,11 @@ import contextlib import json import re -import sys -import os from os.path import join, dirname, abspath import tempfile import textwrap -import six - from pylint.lint import Run -from pylint.reporters import BaseReporter from pylint.reporters.text import * from pylint.reporters.json import JSONReporter import pytest @@ -129,15 +124,14 @@ class TestRunTC(object): self._runtest(['pylint.__pkginfo__'], reporter=TextReporter(six.StringIO()), code=0) - def test_all(self): - """Make pylint check itself.""" + def test_all_reporters(self): reporters = [ TextReporter(six.StringIO()), ColorizedTextReporter(six.StringIO()), JSONReporter(six.StringIO()) ] - self._runtest(['pylint/test/functional/arguments.py'], - reporter=MultiReporter(reporters), code=1) + self._runtest([join(HERE, 'regrtest_data', 'syntax_error.py')], + reporter=MultiReporter(reporters), code=2) def test_no_ext_file(self): self._runtest([join(HERE, 'input', 'noext')], code=0) @@ -218,7 +212,7 @@ class TestRunTC(object): def test_parallel_execution(self): self._runtest(['-j 2', 'pylint/test/functional/arguments.py', - 'pylint/test/functional/bad_continuation.py'], code=1) + 'pylint/test/functional/bad_continuation.py'], code=18) def test_parallel_execution_missing_arguments(self): self._runtest(['-j 2', 'not_here', 'not_here_too'], code=1) |