]> granicus.if.org Git - python/commitdiff
Issue #23517: test_time, skip a test checking a corner case on floating point
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 11:54:28 +0000 (13:54 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 11:54:28 +0000 (13:54 +0200)
rounding

Lib/test/test_time.py

index db962779b35465f6b33e082ad266004c06b7fd94..5947f4041f77aec9cb500a7b7a423ee80f7c06e1 100644 (file)
@@ -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)