diff options
Diffstat (limited to 'tests/reporters/unittest_reporting.py')
-rw-r--r-- | tests/reporters/unittest_reporting.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/reporters/unittest_reporting.py b/tests/reporters/unittest_reporting.py index 40a18036a..98cd17923 100644 --- a/tests/reporters/unittest_reporting.py +++ b/tests/reporters/unittest_reporting.py @@ -1,12 +1,11 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt # pylint: disable=redefined-outer-name 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") |