]> granicus.if.org Git - python/commitdiff
Cleanup test_descr: remove C8 that is the same as C3.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Oct 2015 14:42:39 +0000 (17:42 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Oct 2015 14:42:39 +0000 (17:42 +0300)
Lib/test/test_descr.py

index adce6e590516188e53ffbf7fc134282992727187..ce9626c77a77d2199914ac92111db89a623d6090 100644 (file)
@@ -4655,14 +4655,6 @@ class PicklingTests(unittest.TestCase):
                     with self.assertRaises((TypeError, ValueError)):
                         obj.__reduce_ex__(proto)
 
-        class C8:
-            def __getnewargs_ex__(self):
-                return (args, kwargs)
-        obj = C8()
-        for proto in protocols:
-            if 2 <= proto < 4:
-                with self.assertRaises(ValueError):
-                    obj.__reduce_ex__(proto)
         class C9:
             def __getnewargs_ex__(self):
                 return (args, {})