summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-11 14:43:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-11 14:43:12 (GMT)
commit1ddbb8cf479bb865b6c5c225a8e73663ae6abcb0 (patch)
tree8b2e8053ccfa50debcf4b6cedb33d50d7f6ce8c3
parent718c984e6ed66fd7829af528db60479dbbe73475 (diff)
parent1fdc80b55f4d1cb0a39aa271db3b579ce5094d77 (diff)
downloadcpython-1ddbb8cf479bb865b6c5c225a8e73663ae6abcb0.zip
cpython-1ddbb8cf479bb865b6c5c225a8e73663ae6abcb0.tar.gz
cpython-1ddbb8cf479bb865b6c5c225a8e73663ae6abcb0.tar.bz2
Cleanup test_descr: remove C8 that is the same as C3.
-rw-r--r--Lib/test/test_descr.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 4fd9211..9a1b5b7 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -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, {})