diff options
author | Fergal Hainey <fergal.hainey@skyscanner.net> | 2018-06-10 11:38:15 +0100 |
---|---|---|
committer | Ashley Whetter <ashley@awhetter.co.uk> | 2019-02-09 13:40:54 -0800 |
commit | eddca7a135464868c7e4745a60455c3a15bc5db7 (patch) | |
tree | 40f279ee2ff46609e8dd3f7aba18187634b16dba | |
parent | 2ed3d5ce2cb2b83dd5b24c0fdafbc27c3a2c9d5f (diff) | |
download | pylint-git-eddca7a135464868c7e4745a60455c3a15bc5db7.tar.gz |
Remove breaking tests
Class under test was deprecated and has been removed.
-rw-r--r-- | pylint/test/unittest_reporting.py | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/pylint/test/unittest_reporting.py b/pylint/test/unittest_reporting.py index 14b05f0fc..d36643223 100644 --- a/pylint/test/unittest_reporting.py +++ b/pylint/test/unittest_reporting.py @@ -17,7 +17,7 @@ from io import StringIO import pylint.config from pylint.lint import PluginRegistry, PyLinter from pylint import checkers -from pylint.reporters.text import TextReporter, ParseableTextReporter +from pylint.reporters.text import TextReporter import pytest @@ -44,37 +44,6 @@ def test_template_option(linter): ) -def test_parseable_output_deprecated(): - with warnings.catch_warnings(record=True) as cm: - warnings.simplefilter("always") - ParseableTextReporter() - - assert len(cm) == 1 - assert isinstance(cm[0].message, DeprecationWarning) - - -def test_parseable_output_regression(): - output = StringIO() - with warnings.catch_warnings(record=True): - global_config = pylint.config.Configuration() - linter = PyLinter(global_config) - registry = PluginRegistry(linter, register_options=global_config.add_options) - linter.set_reporter(ParseableTextReporter()) - - checkers.initialize(registry) - linter.config.persistent = 0 - linter.reporter.set_output(output) - linter.config.output_format = "parseable" - linter.open() - linter.set_current_module("0123") - linter.add_message("line-too-long", line=1, args=(1, 2)) - assert ( - output.getvalue() == "************* Module 0123\n" - "0123:1: [C0301(line-too-long), ] " - "Line too long (1/2)\n" - ) - - def test_display_results_is_renamed(): class CustomReporter(TextReporter): def _display(self, layout): |