Skip to content

Commit 0754b1d

Browse files
Clean up tests that had min_pyver=3.7 test setting (#8792)
Unlike py-version, which is still meaningful for lower versions, min_pyver doesn't have any meaning when it's already the lowest supported Python interpreter for launching pylint.
1 parent e33920f commit 0754b1d

File tree

51 files changed

+14
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+14
-104
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
[main]
22
load-plugins=pylint.extensions.typing
3-
4-
[testoptions]
5-
min_pyver=3.7

tests/functional/a/access/access_to_protected_members_typing.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/a/assigning/assigning_non_slot_4509.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/a/await_outside_async.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/d/dataclass/dataclass_typecheck.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/d/dataclass/dataclass_with_default_factory.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/d/dataclass/dataclass_with_field.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
[main]
22
load-plugins=pylint.extensions.typing
33

4-
[testoptions]
5-
min_pyver=3.7
6-
74
[TYPING]
85
runtime-typing=no
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[main]
22
py-version=3.9
33
load-plugins=pylint.extensions.typing
4-
5-
[testoptions]
6-
min_pyver=3.7
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[main]
22
py-version=3.9
33
load-plugins=pylint.extensions.typing
4-
5-
[testoptions]
6-
min_pyver=3.7
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[main]
22
py-version=3.9
33
load-plugins=pylint.extensions.typing
4-
5-
[testoptions]
6-
min_pyver=3.7
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[main]
22
py-version=3.7
33
load-plugins=pylint.extensions.typing
4-
5-
[testoptions]
6-
min_pyver=3.7

tests/functional/f/forgotten_debug_statement_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/f/function_redefined_2540.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[testoptions]
2-
min_pyver=3.7
32
max_pyver=3.9
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[testoptions]
2-
min_pyver=3.7
32
max_pyver=3.9
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[testoptions]
2-
min_pyver=3.7
32
max_pyver=3.9
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[testoptions]
2-
min_pyver=3.7
32
max_pyver=3.9

tests/functional/g/generic_alias/generic_alias_related.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/g/generic_alias/generic_alias_typing.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/i/invalid/invalid_field_call.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/i/invalid/invalid_name/invalid_name_issue_3405.rc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ enable=invalid-name
44
[BASIC]
55
attr-rgx=^x$
66
class-attribute-rgx=^y$
7-
8-
[testoptions]
9-
min_pyver=3.7

tests/functional/l/logging/logging_fstring_interpolation_py37.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[testoptions]
2-
min_pyver=3.7
32
exclude_from_minimal_messages_config=true
43

54
[LOGGING]

tests/functional/m/member/member_checks_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/n/no/no_member_dataclasses.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/n/no/no_member_nested_namedtuple.rc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[testoptions]
2-
min_pyver=3.7
3-
41
[MESSAGES CONTROL]
52
disable=fixme,
63
logging-too-many-args,

tests/functional/n/no/no_member_subclassed_dataclasses.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/n/no/no_self_argument.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Check for method without self as first argument"""
2-
2+
# pylint: disable=missing-docstring,too-few-public-methods
33

44
MYSTATICMETHOD = staticmethod
55

@@ -47,3 +47,15 @@ def kwargs(**kwargs): # [no-self-argument]
4747

4848
def varargs_and_kwargs(*args, **kwargs): # [no-self-argument]
4949
"""A method without a self argument but with *args and **kwargs."""
50+
51+
52+
class Toto:
53+
54+
def __class_getitem__(cls, params):
55+
# This is actually a special method which is always a class method.
56+
# See https://www.python.org/dev/peps/pep-0560/#class-getitem
57+
pass
58+
59+
def __class_other__(cls, params): # [no-self-argument]
60+
# This is not a special case and as such is an instance method.
61+
pass

tests/functional/n/no/no_self_argument.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ no-self-argument:19:4:19:12:NoSelfArgument.abdc:"Method 'abdc' should have ""sel
33
no-self-argument:42:4:42:15:NoSelfArgument.varargs:"Method 'varargs' should have ""self"" as first argument":UNDEFINED
44
no-self-argument:45:4:45:14:NoSelfArgument.kwargs:"Method 'kwargs' should have ""self"" as first argument":UNDEFINED
55
no-self-argument:48:4:48:26:NoSelfArgument.varargs_and_kwargs:"Method 'varargs_and_kwargs' should have ""self"" as first argument":UNDEFINED
6+
no-self-argument:59:4:59:23:Toto.__class_other__:"Method '__class_other__' should have ""self"" as first argument":UNDEFINED

tests/functional/n/no/no_self_argument_py37.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/functional/n/no/no_self_argument_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/n/no/no_self_argument_py37.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/functional/n/not_async_context_manager_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/p/postponed/postponed_evaluation_activated.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/p/postponed/postponed_evaluation_activated_with_alias.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/p/postponed/postponed_evaluation_not_activated.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/r/redefined/redefined_outer_name_type_checking.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/r/regression/regression_3507_typing_alias_isinstance.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/r/regression_02/regression_5030.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/t/too/too_few_public_methods_37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/t/too/too_many_instance_attributes_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[testoptions]
2-
min_pyver=3.7
32
exclude_from_minimal_messages_config=true

tests/functional/t/typing_generic.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/u/unpacking/unpacking_non_sequence_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/u/unsubscriptable_value_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/functional/u/used/used_before_assignment_py37.rc

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[testoptions]
2-
min_pyver=3.7
32
max_pyver=3.10

0 commit comments

Comments
 (0)