Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 9c8213f

Browse files
No longer skip tests for classes with __getnewargs_ex__. The copy module
already supports reduce protocol 4 (issue python#20289).
1 parent 1ddbb8c commit 9c8213f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/test/test_descr.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5081,10 +5081,6 @@ def __repr__(self):
50815081
with self.subTest(cls=cls):
50825082
kwargs = getattr(cls, 'KWARGS', {})
50835083
obj = cls(*cls.ARGS, **kwargs)
5084-
# XXX: We need to modify the copy module to support PEP 3154's
5085-
# reduce protocol 4.
5086-
if hasattr(cls, '__getnewargs_ex__'):
5087-
continue
50885084
objcopy = deepcopy(obj)
50895085
self._assert_is_copy(obj, objcopy)
50905086
# For test classes that supports this, make sure we didn't go

0 commit comments

Comments
 (0)