MCPcopy Index your code
hub / github.com/python/cpython / test_object_to_time_t

Method test_object_to_time_t

Lib/test/test_time.py:1137–1146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1135 OVERFLOW_SECONDS = 2 ** 64
1136
1137 def test_object_to_time_t(self):
1138 from _testinternalcapi import _PyTime_ObjectToTime_t
1139
1140 self.check_int_rounding(_PyTime_ObjectToTime_t,
1141 lambda secs: secs,
1142 value_filter=self.time_t_filter)
1143
1144 self.check_float_rounding(_PyTime_ObjectToTime_t,
1145 self.decimal_round,
1146 value_filter=self.time_t_filter)
1147
1148 def create_converter(self, sec_to_unit):
1149 def converter(secs):

Callers

nothing calls this directly

Calls 2

check_int_roundingMethod · 0.80
check_float_roundingMethod · 0.80

Tested by

no test coverage detected