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

Method setsig

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

Source from the content-addressed store, hash-verified

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

Calls 1

addCleanupMethod · 0.80

Tested by

no test coverage detected