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

Method setUp

Lib/test/test_socket.py:5105–5109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5103 # any scheduled alarms.
5104
5105 def setUp(self):
5106 super().setUp()
5107 orig_alrm_handler = signal.signal(signal.SIGALRM,
5108 lambda signum, frame: 1 / 0)
5109 self.addCleanup(signal.signal, signal.SIGALRM, orig_alrm_handler)
5110
5111 # Timeout for socket operations
5112 timeout = support.LOOPBACK_TIMEOUT

Callers

nothing calls this directly

Calls 3

superClass · 0.85
addCleanupMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected