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

Method test_kqueue

Lib/test/_test_eintr.py:486–494  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

484
485 @unittest.skipUnless(hasattr(select, 'kqueue'), 'need select.kqueue')
486 def test_kqueue(self):
487 kqueue = select.kqueue()
488 self.addCleanup(kqueue.close)
489
490 t0 = time.monotonic()
491 kqueue.control(None, 1, self.sleep_time)
492 dt = time.monotonic() - t0
493 self.stop_alarm()
494 self.check_elapsed_time(dt)
495
496 @unittest.skipUnless(hasattr(select, 'devpoll'), 'need select.devpoll')
497 def test_devpoll(self):

Callers

nothing calls this directly

Calls 3

addCleanupMethod · 0.80
stop_alarmMethod · 0.80
check_elapsed_timeMethod · 0.80

Tested by

no test coverage detected