Incorrect slice assignment on memoryview
Hi
I just noticed the following issue while using a memoryview
with pypy-7.3.9-final
:
def test_memoryview_slice_assignment():
sieve = bytearray([1, 2, 3])
view = memoryview(sieve)
subview = view[::2]
assert list(subview) == [1, 3]
subview[:] = bytes([0, 0])
> assert list(sieve) == [0, 2, 0]
E assert [0, 0, 3] == [0, 2, 0]
This same test passes with cpython, as expected.