Kaydet (Commit) 1ddbb8cf 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): ...@@ -4763,14 +4763,6 @@ class PicklingTests(unittest.TestCase):
with self.assertRaises((TypeError, ValueError)): with self.assertRaises((TypeError, ValueError)):
obj.__reduce_ex__(proto) 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: class C9:
def __getnewargs_ex__(self): def __getnewargs_ex__(self):
return (args, {}) 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