diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 09:52:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 09:52:43 +0200 |
commit | f29bdd4e04c8c144b378220434646b37a8e7d9a0 (patch) | |
tree | 23231076dbd0beb358de9ea5d4325a27f8af40f1 /tests/reporters | |
parent | ef7a9108e1bc5d1052d41bf7eda0311610c39d73 (diff) | |
download | pylint-git-f29bdd4e04c8c144b378220434646b37a8e7d9a0.tar.gz |
Turn on ``check-untyped-defs`` in ``mypy`` (#7407)
Diffstat (limited to 'tests/reporters')
-rw-r--r-- | tests/reporters/unittest_reporting.py | 5 |
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) |