[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:
Ivan Levkivskyi 2019-04-26 18:21:45 -07:00 committed by GitHub
parent 967f14ec2a
commit d111490a1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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__}]'