MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

5000 # any scheduled alarms.
5001
5002 def setUp(self):
5003 super().setUp()
5004 orig_alrm_handler = signal.signal(signal.SIGALRM,
5005 lambda signum, frame: 1 / 0)
5006 self.addCleanup(signal.signal, signal.SIGALRM, orig_alrm_handler)
5007
5008 # Timeout for socket operations
5009 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