diff options
| author | Damien George <damien@micropython.org> | 2021-06-18 14:16:07 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-06-18 14:16:07 +1000 |
| commit | adf35cbab096a4a207ad3eca5323b0e164e7171d (patch) | |
| tree | b0d0f74308797c61083e21361834098655f07f97 | |
| parent | bc89cdeb45b66961b56e2354f2a0be9ef611ad7b (diff) | |
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>
| -rw-r--r-- | tests/float/bytearray_construct_endian.py | 2 | ||||
| -rw-r--r-- | tests/float/bytes_construct_endian.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/float/bytearray_construct_endian.py b/tests/float/bytearray_construct_endian.py index 257d37d1b..47f2b793c 100644 --- a/tests/float/bytearray_construct_endian.py +++ b/tests/float/bytearray_construct_endian.py @@ -9,4 +9,4 @@ except ImportError: print("SKIP") raise SystemExit -print(bytearray(array("f", [1, 2.3]))) +print(bytearray(array("f", [1, 2.5]))) diff --git a/tests/float/bytes_construct_endian.py b/tests/float/bytes_construct_endian.py index 208f56162..4e15acc8b 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]))) |
