diff options
Diffstat (limited to 'tests/float/bytearray_construct.py')
-rw-r--r-- | tests/float/bytearray_construct.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/float/bytearray_construct.py b/tests/float/bytearray_construct.py new file mode 100644 index 000000000..f72926635 --- /dev/null +++ b/tests/float/bytearray_construct.py @@ -0,0 +1,5 @@ +# test construction of bytearray from array with float type + +from array import array + +print(bytearray(array('f', [1, 2.3]))) |