]> granicus.if.org Git - python/commitdiff
No longer skip tests for classes with __getnewargs_ex__. The copy module
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Oct 2015 14:48:28 +0000 (17:48 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Oct 2015 14:48:28 +0000 (17:48 +0300)
already supports reduce protocol 4 (issue #20289).

Lib/test/test_descr.py

index 9a1b5b76df7bbf547bd5a628b5c38cbb10c92258..d096390110282bdc8f488579d803abcc38e68e1a 100644 (file)
@@ -5081,10 +5081,6 @@ class PicklingTests(unittest.TestCase):
             with self.subTest(cls=cls):
                 kwargs = getattr(cls, 'KWARGS', {})
                 obj = cls(*cls.ARGS, **kwargs)
-                # XXX: We need to modify the copy module to support PEP 3154's
-                # reduce protocol 4.
-                if hasattr(cls, '__getnewargs_ex__'):
-                    continue
                 objcopy = deepcopy(obj)
                 self._assert_is_copy(obj, objcopy)
                 # For test classes that supports this, make sure we didn't go