From adf35cbab096a4a207ad3eca5323b0e164e7171d Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 18 Jun 2021 14:16:07 +1000 Subject: [PATCH] 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 --- tests/float/bytearray_construct_endian.py | 2 +- 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 257d37d1be..47f2b793c0 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 208f56162f..4e15acc8bc 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])))