From eddca7a135464868c7e4745a60455c3a15bc5db7 Mon Sep 17 00:00:00 2001 From: Fergal Hainey Date: Sun, 10 Jun 2018 11:38:15 +0100 Subject: Remove breaking tests Class under test was deprecated and has been removed. --- pylint/test/unittest_reporting.py | 33 +-------------------------------- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.1