diff options
| author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 12:56:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 12:56:40 +0200 |
| commit | 2b6bd64d43ed109b1ee15f0993c010660cf56b13 (patch) | |
| tree | 0f8605ed4d6b2dc4d0d176a4761d6fdd6526eb4d /tests/lint | |
| parent | 6bac42efacdf1c1777db2021ca6ceda89eb8f199 (diff) | |
| download | pylint-git-2b6bd64d43ed109b1ee15f0993c010660cf56b13.tar.gz | |
Finish some incomplete typing signatures (#7442)
Diffstat (limited to 'tests/lint')
| -rw-r--r-- | tests/lint/test_pylinter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lint/test_pylinter.py b/tests/lint/test_pylinter.py index 495e1c5df..5e2f20ff6 100644 --- a/tests/lint/test_pylinter.py +++ b/tests/lint/test_pylinter.py @@ -7,6 +7,7 @@ from unittest import mock from unittest.mock import patch import pytest +from _pytest.recwarn import WarningsRecorder from py._path.local import LocalPath from pytest import CaptureFixture @@ -20,7 +21,7 @@ def raise_exception(*args: Any, **kwargs: Any) -> NoReturn: @patch.object(FileState, "iter_spurious_suppression_messages", raise_exception) def test_crash_in_file( - linter: PyLinter, capsys: CaptureFixture, tmpdir: LocalPath + linter: PyLinter, capsys: CaptureFixture[str], tmpdir: LocalPath ) -> None: with pytest.warns(DeprecationWarning): args = linter.load_command_line_configuration([__file__]) @@ -35,7 +36,7 @@ def test_crash_in_file( assert any(m.symbol == "fatal" for m in linter.reporter.messages) -def test_check_deprecation(linter: PyLinter, recwarn): +def test_check_deprecation(linter: PyLinter, recwarn: WarningsRecorder) -> None: linter.check("myfile.py") msg = recwarn.pop() assert "check function will only accept sequence" in str(msg) |
