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