Skip to content

Commit

Permalink
Remove test dependency mypy-extensions (pylint-dev#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Sep 5, 2021
1 parent 2500086 commit 005b7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion requirements_test_min.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
astroid==2.7.3 # Pinned to a specific version for tests
pytest~=6.2
pytest-benchmark~=3.4
mypy_extensions==0.4.3
7 changes: 6 additions & 1 deletion tests/lint/test_pylinter.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import sys
from typing import Any
from unittest.mock import patch

from _pytest.capture import CaptureFixture
from astroid import AstroidBuildingError
from mypy_extensions import NoReturn
from py._path.local import LocalPath # type: ignore

from pylint.lint.pylinter import PyLinter
from pylint.utils import FileState

if sys.version_info >= (3, 6, 2):
from typing import NoReturn
else:
from typing_extensions import NoReturn


def raise_exception(*args: Any, **kwargs: Any) -> NoReturn:
raise AstroidBuildingError(modname="spam")
Expand Down

0 comments on commit 005b7d2

Please sign in to comment.