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>
pull/7419/head
Damien George 2021-06-18 14:16:07 +10:00
rodzic bc89cdeb45
commit adf35cbab0
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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