|
15 | 15 | from astroid import MANAGER, builder, nodes, objects, test_utils, util
|
16 | 16 | from astroid.bases import Instance
|
17 | 17 | from astroid.brain.brain_namedtuple_enum import _get_namedtuple_fields
|
18 |
| -from astroid.const import PY312_PLUS, PY313_PLUS, PY314_PLUS |
| 18 | +from astroid.const import PY312_PLUS, PY313_PLUS |
19 | 19 | from astroid.exceptions import (
|
20 | 20 | AttributeInferenceError,
|
21 | 21 | InferenceError,
|
@@ -181,7 +181,7 @@ def check_metaclass_is_abc(node: nodes.ClassDef):
|
181 | 181 | if PY312_PLUS and node.name == "ByteString":
|
182 | 182 | # .metaclass() finds the first metaclass in the mro(),
|
183 | 183 | # which, from 3.12, is _DeprecateByteStringMeta (unhelpful)
|
184 |
| - # until ByteString is removed in 3.14. |
| 184 | + # until ByteString is removed in 3.17. |
185 | 185 | # Jump over the first two ByteString classes in the mro().
|
186 | 186 | check_metaclass_is_abc(node.mro()[2])
|
187 | 187 | else:
|
@@ -285,9 +285,6 @@ class Derived(collections.abc.Iterator[int]):
|
285 | 285 | ],
|
286 | 286 | )
|
287 | 287 |
|
288 |
| - @pytest.mark.skipif( |
289 |
| - PY314_PLUS, reason="collections.abc.ByteString was removed in 3.14" |
290 |
| - ) |
291 | 288 | def test_collections_object_subscriptable_3(self):
|
292 | 289 | """With Python 3.9 the ByteString class of the collections module is subscriptable
|
293 | 290 | (but not the same class from typing module)"""
|
@@ -870,9 +867,8 @@ class Derived(typing.Hashable, typing.Iterator[int]):
|
870 | 867 | ],
|
871 | 868 | )
|
872 | 869 |
|
873 |
| - @pytest.mark.skipif(PY314_PLUS, reason="typing.ByteString was removed in 3.14") |
874 | 870 | def test_typing_object_notsubscriptable_3(self):
|
875 |
| - """Until python39 ByteString class of the typing module is not |
| 871 | + """The ByteString class of the typing module is not |
876 | 872 | subscriptable (whereas it is in the collections' module)"""
|
877 | 873 | right_node = builder.extract_node(
|
878 | 874 | """
|
|
0 commit comments