summaryrefslogtreecommitdiff
path: root/tests/reporters/unittest_reporting.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reporters/unittest_reporting.py')
-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")