From 56beb01724d4f0027babc5d23f016efbde4c4190 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 16 Apr 2015 00:48:36 +0300 Subject: objarray: Support assignment of bytes to bytearray slice. --- tests/basics/bytearray_slice_assign.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/basics/bytearray_slice_assign.py b/tests/basics/bytearray_slice_assign.py index a5436c815..3209e24d4 100644 --- a/tests/basics/bytearray_slice_assign.py +++ b/tests/basics/bytearray_slice_assign.py @@ -46,3 +46,9 @@ print(l) b = bytearray(2) b[2:] = bytearray(10) print(b) + + +# Assignment of bytes to array slice +b = bytearray(2) +b[1:1] = b"12345" +print(b) -- cgit v1.2.3