diff options
Diffstat (limited to 'tests/float')
| -rw-r--r-- | tests/float/bytearray_construct_endian.py (renamed from tests/float/bytearray_construct.py) | 0 | ||||
| -rw-r--r-- | tests/float/bytes_construct_endian.py (renamed from tests/float/bytes_construct.py) | 2 | ||||
| -rw-r--r-- | tests/float/float_array.py | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/float/bytearray_construct.py b/tests/float/bytearray_construct_endian.py index 257d37d1b..257d37d1b 100644 --- a/tests/float/bytearray_construct.py +++ b/tests/float/bytearray_construct_endian.py diff --git a/tests/float/bytes_construct.py b/tests/float/bytes_construct_endian.py index 0806087b0..208f56162 100644 --- a/tests/float/bytes_construct.py +++ b/tests/float/bytes_construct_endian.py @@ -1,4 +1,4 @@ -# test construction of bytearray from array with float type +# test construction of bytes from array with float type try: from uarray import array diff --git a/tests/float/float_array.py b/tests/float/float_array.py index 3c2189869..219b6b86a 100644 --- a/tests/float/float_array.py +++ b/tests/float/float_array.py @@ -22,4 +22,4 @@ def test(a): test(array("f")) test(array("d")) -print("{:.4f}".format(array("f", b"\xcc\xcc\xcc=")[0])) +print("{:.4f}".format(array("f", bytes(array("I", [0x3DCCCCCC])))[0])) |
