mirror of
https://github.com/python/cpython.git
synced 2026-04-23 12:21:01 +00:00
[3.7] bpo-36679: Rename duplicate test_class_getitem function (GH-12892) (GH-12978)
(cherry picked from commit d437012cdd)
Co-authored-by: Windson yang <wiwindson@outlook.com>
This commit is contained in:
parent
967f14ec2a
commit
d111490a1f
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ def __class_getitem__(*args, **kwargs):
|
|||
self.assertEqual(getitem_args[0], (C, (int, str)))
|
||||
self.assertEqual(getitem_args[1], {})
|
||||
|
||||
def test_class_getitem(self):
|
||||
def test_class_getitem_format(self):
|
||||
class C:
|
||||
def __class_getitem__(cls, item):
|
||||
return f'C[{item.__name__}]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue