[Python-checkins] cpython: Fix test_time on platform with 32-bit time_t type
victor.stinner
python-checkins at python.org
Thu Sep 10 11:48:28 CEST 2015
https://hg.python.org/cpython/rev/0456e9379fa7
changeset: 97851:0456e9379fa7
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Sep 10 11:45:06 2015 +0200
summary:
Fix test_time on platform with 32-bit time_t type
Filter also values for check_float_rounding().
files:
Lib/test/test_time.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -918,7 +918,8 @@
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 @@
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 @@
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__":
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list