summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytes_construct_endian.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-06-18 14:16:07 +1000
committerDamien George <damien@micropython.org>2021-06-18 14:16:07 +1000
commitadf35cbab096a4a207ad3eca5323b0e164e7171d (patch)
treeb0d0f74308797c61083e21361834098655f07f97 /tests/float/bytes_construct_endian.py
parentbc89cdeb45b66961b56e2354f2a0be9ef611ad7b (diff)
downloadmicropython-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.py2
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])))