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

Method test_poll

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

Source from the content-addressed store, hash-verified

463 "poll may fail on macOS; see issue #28087")
464 @unittest.skipUnless(hasattr(select, 'poll'), 'need select.poll')
465 def test_poll(self):
466 poller = select.poll()
467
468 t0 = time.monotonic()
469 poller.poll(self.sleep_time * 1e3)
470 dt = time.monotonic() - t0
471 self.stop_alarm()
472 self.check_elapsed_time(dt)
473
474 @unittest.skipUnless(hasattr(select, 'epoll'), 'need select.epoll')
475 def test_epoll(self):

Callers

nothing calls this directly

Calls 3

stop_alarmMethod · 0.80
check_elapsed_timeMethod · 0.80
pollMethod · 0.45

Tested by

no test coverage detected