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

Method setsig

Lib/test/test_signal.py:1226–1228  ·  view source on GitHub ↗
(self, signum, handler)

Source from the content-addressed store, hash-verified

1224 """
1225
1226 def setsig(self, signum, handler):
1227 old_handler = signal.signal(signum, handler)
1228 self.addCleanup(signal.signal, signum, old_handler)
1229
1230 def measure_itimer_resolution(self):
1231 N = 20

Calls 1

addCleanupMethod · 0.80

Tested by

no test coverage detected