py/objarray: Fix array slice assignment when array is reallocated.

Addresses issue #1898.
This commit is contained in:
Damien George
2016-03-14 23:12:54 +00:00
parent 06b398489e
commit 77f85db41e
2 changed files with 4 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ b = bytearray(2)
b[2:] = bytearray(10)
print(b)
b = bytearray(10)
b[:-1] = bytearray(500)
print(len(b), b[0], b[-1])
# Assignment of bytes to array slice
b = bytearray(2)