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

Method test_epoll

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

Source from the content-addressed store, hash-verified

473
474 @unittest.skipUnless(hasattr(select, 'epoll'), 'need select.epoll')
475 def test_epoll(self):
476 poller = select.epoll()
477 self.addCleanup(poller.close)
478
479 t0 = time.monotonic()
480 poller.poll(self.sleep_time)
481 dt = time.monotonic() - t0
482 self.stop_alarm()
483 self.check_elapsed_time(dt)
484
485 @unittest.skipUnless(hasattr(select, 'kqueue'), 'need select.kqueue')
486 def test_kqueue(self):

Callers

nothing calls this directly

Calls 4

addCleanupMethod · 0.80
stop_alarmMethod · 0.80
check_elapsed_timeMethod · 0.80
pollMethod · 0.45

Tested by

no test coverage detected