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>
This commit is contained in:
Damien George 2021-06-18 14:16:07 +10:00
parent bc89cdeb45
commit adf35cbab0
2 changed files with 2 additions and 2 deletions

View File

@ -9,4 +9,4 @@ except ImportError:
print("SKIP") print("SKIP")
raise SystemExit raise SystemExit
print(bytearray(array("f", [1, 2.3]))) print(bytearray(array("f", [1, 2.5])))

View File

@ -9,4 +9,4 @@ except ImportError:
print("SKIP") print("SKIP")
raise SystemExit raise SystemExit
print(bytes(array("f", [1, 2.3]))) print(bytes(array("f", [1, 2.5])))