Closed
Description
After working on #100817 I've noticed that there are multiple things that can be improved in terms of copy
module tests:
- First of all, I had submitted some broken code in gh-100817: Speed up
copy.deepcopy
calls onslice
objects #100818 but, our test cases were not able to detect it. Solution: add a new test case intest_slice.py
withcopy
anddeepcopy
calls. I think it should be intest_slice
and not intest_copy
, because there's nothing special about it:copy
does not change its behaviour or special case it. - This test ensures that after modifing
copyreg
we can now copy an object, but does not assert the result:Lines 42 to 55 in e47b139
Lines 302 to 315 in e47b139
test_deepcopy_atomic
misses several important types:bytes
,types.EllipsisType
,NotImplementedType
.Lines 350 to 359 in e47b139
PR is incoming.