bpo-36679: Rename duplicate test_class_getitem function (GH-12892)

This commit is contained in:
Windson yang 2019-04-23 02:51:06 +08:00 committed by Steve Dower
parent c442b1c486
commit d437012cdd
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class TestClassGetitem(unittest.TestCase):
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__}]'