summaryrefslogtreecommitdiff
path: root/tests/reporters
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-09-09 09:52:43 +0200
committerGitHub <noreply@github.com>2022-09-09 09:52:43 +0200
commitf29bdd4e04c8c144b378220434646b37a8e7d9a0 (patch)
tree23231076dbd0beb358de9ea5d4325a27f8af40f1 /tests/reporters
parentef7a9108e1bc5d1052d41bf7eda0311610c39d73 (diff)
downloadpylint-git-f29bdd4e04c8c144b378220434646b37a8e7d9a0.tar.gz
Turn on ``check-untyped-defs`` in ``mypy`` (#7407)
Diffstat (limited to 'tests/reporters')
-rw-r--r--tests/reporters/unittest_reporting.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/reporters/unittest_reporting.py b/tests/reporters/unittest_reporting.py
index ebc4a225f..c81590359 100644
--- a/tests/reporters/unittest_reporting.py
+++ b/tests/reporters/unittest_reporting.py
@@ -17,7 +17,7 @@ import pytest
from pylint import checkers
from pylint.lint import PyLinter
-from pylint.reporters import BaseReporter
+from pylint.reporters import BaseReporter, MultiReporter
from pylint.reporters.text import ParseableTextReporter, TextReporter
from pylint.typing import FileItem
@@ -195,6 +195,7 @@ def test_multi_format_output(tmp_path):
linter.reporter.writeln("direct output")
# Ensure the output files are flushed and closed
+ assert isinstance(linter.reporter, MultiReporter)
linter.reporter.close_output_files()
del linter.reporter
@@ -337,5 +338,5 @@ def test_display_results_is_renamed():
reporter = CustomReporter()
with pytest.raises(AttributeError) as exc:
# pylint: disable=no-member
- reporter.display_results()
+ reporter.display_results() # type: ignore[attr-defined]
assert "no attribute 'display_results'" in str(exc)