Skip to content

Commit a577844

Browse files
committed
seconds_to_time_t => seconds_to_pytime
1 parent ffb8b22 commit a577844

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/test/test_time.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,15 +1141,15 @@ def test_FromSecondsObject(self):
11411141
_PyTime_FromSecondsObject,
11421142
lambda secs: secs * SEC_TO_NS)
11431143

1144-
def seconds_to_time_t(seconds):
1144+
def seconds_to_pytime(seconds):
11451145
floatpart, intpart = math.modf(seconds)
11461146
t = int(intpart) * 10 ** 9
11471147
ns = self.decimal_round(floatpart * float(10**9))
11481148
return t + ns
11491149

11501150
self.check_float_rounding(
11511151
_PyTime_FromSecondsObject,
1152-
seconds_to_time_t)
1152+
seconds_to_pytime)
11531153

11541154
self.check_ratio_rounding(
11551155
_PyTime_FromSecondsObject,

0 commit comments

Comments
 (0)