MCPcopy Index your code
hub / github.com/python-websockets/websockets / test_no_timeout

Method test_no_timeout

tests/sync/test_utils.py:29–33  ·  view source on GitHub ↗

timeout returns None when no deadline is set.

(self)

Source from the content-addressed store, hash-verified

27 self.assertLess(timeout, -MS)
28
29 def test_no_timeout(self):
30 """timeout returns None when no deadline is set."""
31 deadline = Deadline(None)
32 timeout = deadline.timeout()
33 self.assertIsNone(timeout, None)

Callers

nothing calls this directly

Calls 2

timeoutMethod · 0.95
DeadlineClass · 0.85

Tested by

no test coverage detected