Skip to content

Commit 3654b84

Browse files
Remove --min_pyver_end_position
1 parent fb6e2f5 commit 3654b84

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

doc/development_guide/contributor_guide/tests/writing_test.rst

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ test runner. The following options are currently supported:
6161

6262
- "min_pyver": Minimal python version required to run the test
6363
- "max_pyver": Python version from which the test won't be run. If the last supported version is 3.9 this setting should be set to 3.10.
64-
- "min_pyver_end_position": Minimal python version required to check the end_line and end_column attributes of the message
6564
- "requires": Packages required to be installed locally to run the test
6665
- "except_implementations": List of python implementations on which the test should not run
6766
- "exclude_platforms": List of operating systems on which the test should not run

doc/whatsnew/fragments/9774.other

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Remove support for launching pylint with Python 3.8.
22
Code that supports Python 3.8 can still be linted with the ``--py-version=3.8`` setting.
33

4+
``--min_pyver_end_position`` in the functional test runner is no longer relevant and is removed.
5+
46
Refs #9774

pylint/testutils/functional/test_file.py

-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class NoFileError(Exception):
2222
class TestFileOptions(TypedDict):
2323
min_pyver: tuple[int, ...]
2424
max_pyver: tuple[int, ...]
25-
min_pyver_end_position: tuple[int, ...]
2625
requires: list[str]
2726
except_implementations: list[str]
2827
exclude_platforms: list[str]
@@ -33,7 +32,6 @@ class TestFileOptions(TypedDict):
3332
POSSIBLE_TEST_OPTIONS = {
3433
"min_pyver",
3534
"max_pyver",
36-
"min_pyver_end_position",
3735
"requires",
3836
"except_implementations",
3937
"exclude_platforms",
@@ -47,7 +45,6 @@ class FunctionalTestFile:
4745
_CONVERTERS: dict[str, Callable[[str], tuple[int, ...] | list[str]]] = {
4846
"min_pyver": parse_python_version,
4947
"max_pyver": parse_python_version,
50-
"min_pyver_end_position": parse_python_version,
5148
"requires": lambda s: [i.strip() for i in s.split(",")],
5249
"except_implementations": lambda s: [i.strip() for i in s.split(",")],
5350
"exclude_platforms": lambda s: [i.strip() for i in s.split(",")],
@@ -61,7 +58,6 @@ def __init__(self, directory: str, filename: str) -> None:
6158
self.options: TestFileOptions = {
6259
"min_pyver": (2, 5),
6360
"max_pyver": (4, 0),
64-
"min_pyver_end_position": (3, 8),
6561
"requires": [],
6662
"except_implementations": [],
6763
"exclude_platforms": [],

pylint/testutils/lint_module_test.py

-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ def __init__(
7979
self._linter._arg_parser.add_argument(
8080
"--max_pyver", type=parse_python_version, default=(4, 0)
8181
)
82-
self._linter._arg_parser.add_argument(
83-
"--min_pyver_end_position", type=parse_python_version, default=(3, 8)
84-
)
8582
self._linter._arg_parser.add_argument(
8683
"--requires", type=lambda s: [i.strip() for i in s.split(",")], default=[]
8784
)

0 commit comments

Comments
 (0)