summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-10 09:45:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-10 09:45:06 (GMT)
commit350b51839aea3f5bd541b960ef1ec1b5a170854a (patch)
treec168374b8cf415e725177c8529ec73ef67848daf /Lib/test
parent4237d3474c4792472009c6c6c5d46a7f7ab1410d (diff)
downloadcpython-350b51839aea3f5bd541b960ef1ec1b5a170854a.zip
cpython-350b51839aea3f5bd541b960ef1ec1b5a170854a.tar.gz
cpython-350b51839aea3f5bd541b960ef1ec1b5a170854a.tar.bz2
Fix test_time on platform with 32-bit time_t type
Filter also values for check_float_rounding().
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_time.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 891c99d..30b01d5 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -918,7 +918,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
value_filter=self.time_t_filter)
self.check_float_rounding(pytime_object_to_time_t,
- self.decimal_round)
+ self.decimal_round,
+ value_filter=self.time_t_filter)
def create_converter(self, sec_to_unit):
def converter(secs):
@@ -943,7 +944,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
value_filter=self.time_t_filter)
self.check_float_rounding(pytime_object_to_timeval,
- self.create_converter(SEC_TO_US))
+ self.create_converter(SEC_TO_US),
+ value_filter=self.time_t_filter)
def test_object_to_timespec(self):
from _testcapi import pytime_object_to_timespec
@@ -953,7 +955,8 @@ class TestOldPyTime(CPyTimeTestCase, unittest.TestCase):
value_filter=self.time_t_filter)
self.check_float_rounding(pytime_object_to_timespec,
- self.create_converter(SEC_TO_NS))
+ self.create_converter(SEC_TO_NS),
+ value_filter=self.time_t_filter)
if __name__ == "__main__":