changeset: 98688:6f4dd9bc1f20 parent: 98686:41d1c909adf1 parent: 98687:80501740ab84 user: Serhiy Storchaka date: Sun Oct 11 17:48:51 2015 +0300 description: No longer skip tests for classes with __getnewargs_ex__. The copy module already supports reduce protocol 4 (issue #20289). diff -r 41d1c909adf1 -r 6f4dd9bc1f20 Lib/test/test_descr.py --- a/Lib/test/test_descr.py Sun Oct 11 17:43:38 2015 +0300 +++ b/Lib/test/test_descr.py Sun Oct 11 17:48:51 2015 +0300 @@ -5081,10 +5081,6 @@ 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