diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-11 14:48:28 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-11 14:48:28 (GMT) |
commit | 9c8213fbc166486a0adf5003e464dee35510fa4e (patch) | |
tree | de840c476eb46894af741f53c22c296cf9c5e444 | |
parent | 1ddbb8cf479bb865b6c5c225a8e73663ae6abcb0 (diff) | |
download | cpython-9c8213fbc166486a0adf5003e464dee35510fa4e.zip cpython-9c8213fbc166486a0adf5003e464dee35510fa4e.tar.gz cpython-9c8213fbc166486a0adf5003e464dee35510fa4e.tar.bz2 |
No longer skip tests for classes with __getnewargs_ex__. The copy module
already supports reduce protocol 4 (issue #20289).
-rw-r--r-- | Lib/test/test_descr.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 9a1b5b7..d096390 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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 |