MCPcopy Create free account
hub / github.com/EasyIME/PIME / tearDown

Method tearDown

python/python3/tornado/test/process_test.py:37–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 return Application([("/", ProcessHandler)])
36
37 def tearDown(self):
38 if task_id() is not None:
39 # We're in a child process, and probably got to this point
40 # via an uncaught exception. If we return now, both
41 # processes will continue with the rest of the test suite.
42 # Exit now so the parent process will restart the child
43 # (since we don't have a clean way to signal failure to
44 # the parent that won't restart)
45 logging.error("aborting child process from tearDown")
46 logging.shutdown()
47 os._exit(1)
48 # In the surviving process, clear the alarm we set earlier
49 signal.alarm(0)
50 super().tearDown()
51
52 def test_multi_process(self):
53 # This test doesn't work on twisted because we use the global

Callers

nothing calls this directly

Calls 3

task_idFunction · 0.90
errorMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected