From: Victor Stinner Date: Wed, 2 Sep 2015 11:54:28 +0000 (+0200) Subject: Issue #23517: test_time, skip a test checking a corner case on floating point X-Git-Tag: v3.6.0a1~1707 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8aad8d6ad32de1f8fb87ff55ecde8ea3de8a72c4;p=thirdparty%2FPython%2Fcpython.git Issue #23517: test_time, skip a test checking a corner case on floating point rounding --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index db962779b354..5947f4041f77 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)