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

Method test_select

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

Source from the content-addressed store, hash-verified

453 """ EINTR tests for the select module. """
454
455 def test_select(self):
456 t0 = time.monotonic()
457 select.select([], [], [], self.sleep_time)
458 dt = time.monotonic() - t0
459 self.stop_alarm()
460 self.check_elapsed_time(dt)
461
462 @unittest.skipIf(sys.platform == "darwin",
463 "poll may fail on macOS; see issue #28087")

Callers

nothing calls this directly

Calls 3

stop_alarmMethod · 0.80
check_elapsed_timeMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected