Skip to content

Commit adf35cb

Browse files
committed
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>
1 parent bc89cde commit adf35cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/float/bytearray_construct_endian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
print("SKIP")
1010
raise SystemExit
1111

12-
print(bytearray(array("f", [1, 2.3])))
12+
print(bytearray(array("f", [1, 2.5])))

tests/float/bytes_construct_endian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
print("SKIP")
1010
raise SystemExit
1111

12-
print(bytes(array("f", [1, 2.3])))
12+
print(bytes(array("f", [1, 2.5])))

0 commit comments

Comments
 (0)