summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/bytearray_slice_assign.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/bytearray_slice_assign.py b/tests/basics/bytearray_slice_assign.py
index 3209e24d40..510e784da7 100644
--- a/tests/basics/bytearray_slice_assign.py
+++ b/tests/basics/bytearray_slice_assign.py
@@ -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)