diff options
author | Damien George <damien@micropython.org> | 2021-06-18 14:16:07 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-06-18 14:16:07 +1000 |
commit | adf35cbab096a4a207ad3eca5323b0e164e7171d (patch) | |
tree | b0d0f74308797c61083e21361834098655f07f97 /tests/float/bytes_construct_endian.py | |
parent | bc89cdeb45b66961b56e2354f2a0be9ef611ad7b (diff) | |
download | micropython-adf35cbab096a4a207ad3eca5323b0e164e7171d.tar.gz micropython-adf35cbab096a4a207ad3eca5323b0e164e7171d.zip |
tests/float: Make bytes/bytearray construct tests work with obj repr C.
2.5 can be represented correctly in object representation C, but 2.3 cannot
(it is slightly truncated).
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/float/bytes_construct_endian.py')
-rw-r--r-- | tests/float/bytes_construct_endian.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float/bytes_construct_endian.py b/tests/float/bytes_construct_endian.py index 208f56162f..4e15acc8bc 100644 --- a/tests/float/bytes_construct_endian.py +++ b/tests/float/bytes_construct_endian.py @@ -9,4 +9,4 @@ except ImportError: print("SKIP") raise SystemExit -print(bytes(array("f", [1, 2.3]))) +print(bytes(array("f", [1, 2.5]))) |