summaryrefslogtreecommitdiff
path: root/tests/reporters
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-08 22:41:20 +0100
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-03-08 23:02:17 +0100
commit44180da558453da6d1b2d8d8de7665d479aaedb6 (patch)
tree67f907d1350ad7f0134f6bb04b84f2587c6493fa /tests/reporters
parent358264aaf622505f6d2e8bc699618382981a078c (diff)
downloadpylint-git-44180da558453da6d1b2d8d8de7665d479aaedb6.tar.gz
[Reporter] Remove 'set_output' in favor of reporter.out
Diffstat (limited to 'tests/reporters')
-rw-r--r--tests/reporters/unittest_reporting.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/reporters/unittest_reporting.py b/tests/reporters/unittest_reporting.py
index 40a18036a..4bc656640 100644
--- a/tests/reporters/unittest_reporting.py
+++ b/tests/reporters/unittest_reporting.py
@@ -6,7 +6,6 @@
from __future__ import annotations
-import sys
import warnings
from contextlib import redirect_stdout
from io import StringIO
@@ -15,7 +14,6 @@ from pathlib import Path
from typing import TYPE_CHECKING, TextIO
import pytest
-from _pytest.recwarn import WarningsRecorder
from pylint import checkers
from pylint.interfaces import HIGH
@@ -128,16 +126,6 @@ def test_template_option_with_header(linter: PyLinter) -> None:
assert out_lines[2] == '{ "Category": "convention" }'
-def test_deprecation_set_output(recwarn: WarningsRecorder) -> None:
- """TODO remove in 3.0."""
- reporter = BaseReporter()
- # noinspection PyDeprecation
- reporter.set_output(sys.stdout)
- warning = recwarn.pop()
- assert "set_output' will be removed in 3.0" in str(warning)
- assert reporter.out == sys.stdout
-
-
def test_parseable_output_deprecated() -> None:
with warnings.catch_warnings(record=True) as cm:
warnings.simplefilter("always")