mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #23517: test_time, skip a test checking a corner case on floating point
rounding
This commit is contained in:
parent
24b822e21e
commit
8aad8d6ad3
1 changed files with 3 additions and 1 deletions
|
@ -825,7 +825,9 @@ class TestPyTime_t(unittest.TestCase):
|
|||
# close to 2^23 seconds
|
||||
(2**23 - 1e-9, 8388607999999999, FLOOR),
|
||||
(2**23 - 1e-9, 8388607999999999, CEILING),
|
||||
(2**23 - 1e-9, 8388608000000000, HALF_UP),
|
||||
# Issue #23517: skip HALF_UP test because the result is different
|
||||
# depending on the FPU and how the compiler optimize the code :-/
|
||||
#(2**23 - 1e-9, 8388608000000000, HALF_UP),
|
||||
):
|
||||
with self.subTest(obj=obj, round=rnd, timestamp=ts):
|
||||
self.assertEqual(PyTime_FromSecondsObject(obj, rnd), ts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue