Skip to content

Commit 3d8adae

Browse files
committed
Refresh canonical generic alias coverage for slice
Migrate the complete Python 3.15 test_genericalias file through update_lib. Preserve the full canonical type list and capability guards so normal test runs cover slice subscripting. Assisted-by: OpenAI Codex: gpt-6.1-sol
1 parent 4a6dfbe commit 3d8adae

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎Lib/test/test_genericalias.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from functools import partial, partialmethod, cached_property
1818
from graphlib import TopologicalSorter
1919
from logging import LoggerAdapter, StreamHandler
20-
from mailbox import Mailbox, _PartialFile
20+
from mailbox import Mailbox
2121
try:
2222
import ctypes
2323
except ImportError:
@@ -100,7 +100,9 @@
100100

101101
class BaseTest(unittest.TestCase):
102102
"""Test basics."""
103-
generic_types = [type, tuple, list, dict, set, frozenset, enumerate, memoryview,
103+
generic_types = [type, tuple, list, dict, frozendict,
104+
set, frozenset, enumerate, memoryview,
105+
slice,
104106
defaultdict, deque,
105107
SequenceMatcher,
106108
dircmp,
@@ -116,7 +118,7 @@ class BaseTest(unittest.TestCase):
116118
Iterable, Iterator,
117119
Reversible,
118120
Container, Collection,
119-
Mailbox, _PartialFile,
121+
Mailbox,
120122
ContextVar, Token,
121123
Field,
122124
Set, MutableSet,

0 commit comments

Comments
 (0)