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:
parent
bc89cdeb45
commit
adf35cbab0
|
@ -9,4 +9,4 @@ except ImportError:
|
|||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
print(bytearray(array("f", [1, 2.3])))
|
||||
print(bytearray(array("f", [1, 2.5])))
|
||||
|
|
|
@ -9,4 +9,4 @@ except ImportError:
|
|||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
print(bytes(array("f", [1, 2.3])))
|
||||
print(bytes(array("f", [1, 2.5])))
|
||||
|
|
Loading…
Reference in New Issue