Kaydet (Commit) d437012c authored tarafından Windson yang's avatar Windson yang Kaydeden (comit) Steve Dower

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

üst c442b1c4
...@@ -158,7 +158,7 @@ class TestClassGetitem(unittest.TestCase): ...@@ -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__}]'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment