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

Method test_conversions

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

Source from the content-addressed store, hash-verified

154 time.clock_settime, time.CLOCK_MONOTONIC, 0)
155
156 def test_conversions(self):
157 self.assertEqual(time.ctime(self.t),
158 time.asctime(time.localtime(self.t)))
159 self.assertEqual(int(time.mktime(time.localtime(self.t))),
160 int(self.t))
161
162 def test_sleep_exceptions(self):
163 self.assertRaises(TypeError, time.sleep, [])

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
ctimeMethod · 0.45

Tested by

no test coverage detected