[Python-checkins] cpython (merge 3.5 -> default): Cleanup test_descr: remove C8 that is the same as C3.

serhiy.storchaka python-checkins at python.org
Sun Oct 11 10:55:14 EDT 2015


https://hg.python.org/cpython/rev/41d1c909adf1
changeset:   98686:41d1c909adf1
parent:      98683:463a09a3bfff
parent:      98685:911f2586e6b4
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Oct 11 17:43:38 2015 +0300
summary:
  Cleanup test_descr: remove C8 that is the same as C3.

files:
  Lib/test/test_descr.py |  8 --------
  1 files changed, 0 insertions(+), 8 deletions(-)


diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -4763,14 +4763,6 @@
                     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, {})

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list