Kaydet (Commit) 977e5912 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

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

......@@ -4763,14 +4763,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, {})
......
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