summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-02 11:54:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-02 11:54:28 (GMT)
commit8aad8d6ad32de1f8fb87ff55ecde8ea3de8a72c4 (patch)
tree8a8348629ce12f82fafa6b6d9589f30d38aea9a8 /Lib/test/test_time.py
parent24b822e21e19984eadd20e062a11ce7182cb81da (diff)
downloadcpython-8aad8d6ad32de1f8fb87ff55ecde8ea3de8a72c4.zip
cpython-8aad8d6ad32de1f8fb87ff55ecde8ea3de8a72c4.tar.gz
cpython-8aad8d6ad32de1f8fb87ff55ecde8ea3de8a72c4.tar.bz2
Issue #23517: test_time, skip a test checking a corner case on floating point
rounding
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index db96277..5947f40 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -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)