[Python-checkins] bpo-36679: Rename duplicate test_class_getitem function (GH-12892)

Steve Dower webhook-mailer at python.org
Mon Apr 22 14:52:25 EDT 2019


https://github.com/python/cpython/commit/d437012cdd4a38b5b3d05f139d5f0a28196e4769
commit: d437012cdd4a38b5b3d05f139d5f0a28196e4769
branch: master
author: Windson yang <wiwindson at outlook.com>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2019-04-22T11:51:06-07:00
summary:

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

files:
M Lib/test/test_genericclass.py

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



More information about the Python-checkins mailing list