bpo-36679: Rename duplicate test_class_getitem function (GH-12892)
This commit is contained in:
parent
c442b1c486
commit
d437012cdd
|
@ -158,7 +158,7 @@ class TestClassGetitem(unittest.TestCase):
|
||||||
self.assertEqual(getitem_args[0], (C, (int, str)))
|
self.assertEqual(getitem_args[0], (C, (int, str)))
|
||||||
self.assertEqual(getitem_args[1], {})
|
self.assertEqual(getitem_args[1], {})
|
||||||
|
|
||||||
def test_class_getitem(self):
|
def test_class_getitem_format(self):
|
||||||
class C:
|
class C:
|
||||||
def __class_getitem__(cls, item):
|
def __class_getitem__(cls, item):
|
||||||
return f'C[{item.__name__}]'
|
return f'C[{item.__name__}]'
|
||||||
|
|
Loading…
Reference in New Issue