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

Method test_AsMilliseconds

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

Source from the content-addressed store, hash-verified

1112 self.assertEqual(ts, (tv_sec, tv_nsec))
1113
1114 def test_AsMilliseconds(self):
1115 from _testinternalcapi import _PyTime_AsMilliseconds
1116
1117 self.check_int_rounding(_PyTime_AsMilliseconds,
1118 self.create_decimal_converter(MS_TO_NS),
1119 NS_TO_SEC)
1120
1121 def test_AsMicroseconds(self):
1122 from _testinternalcapi import _PyTime_AsMicroseconds

Callers

nothing calls this directly

Calls 2

check_int_roundingMethod · 0.80

Tested by

no test coverage detected