From: Ivan Levkivskyi Date: Sat, 27 Apr 2019 01:21:45 +0000 (-0700) Subject: [3.7] bpo-36679: Rename duplicate test_class_getitem function (GH-12892) (GH-12978) X-Git-Tag: v3.7.4rc1~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d111490a1f63db2dcc3714157726dc6a5c0fa1cd;p=thirdparty%2FPython%2Fcpython.git [3.7] bpo-36679: Rename duplicate test_class_getitem function (GH-12892) (GH-12978) (cherry picked from commit d437012cdd4a38b5b3d05f139d5f0a28196e4769) Co-authored-by: Windson yang --- diff --git a/Lib/test/test_genericclass.py b/Lib/test/test_genericclass.py index 37a87bc6815e..27420d4f2bad 100644 --- a/Lib/test/test_genericclass.py +++ b/Lib/test/test_genericclass.py @@ -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__}]'