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

Method __call__

Lib/unittest/signals.py:27–38  ·  view source on GitHub ↗
(self, signum, frame)

Source from the content-addressed store, hash-verified

25 self.default_handler = default_handler
26
27 def __call__(self, signum, frame):
28 installed_handler = signal.getsignal(signal.SIGINT)
29 if installed_handler is not self:
30 # if we aren't the installed handler, then delegate immediately
31 # to the default handler
32 self.default_handler(signum, frame)
33
34 if self.called:
35 self.default_handler(signum, frame)
36 self.called = True
37 for result in _results.keys():
38 result.stop()
39
40_results = weakref.WeakKeyDictionary()
41def registerResult(result):

Callers

nothing calls this directly

Calls 3

default_handlerMethod · 0.95
keysMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected