Cleanup test_descr: remove C8 that is the same as C3.

This commit is contained in:
Serhiy Storchaka 2015-10-11 17:42:39 +03:00
parent 0071b3dfcb
commit 1fdc80b55f

View 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, {})