Module ImportFrom alias alias alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args defaults body If Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr TupleLoad Str Str body Raise Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list Return Call NameLoad ListLoad TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad With Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call NameLoad Num keyword Num Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIs Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return TryExcept body If CompareIn NameLoad TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Num body Raise decorator_list Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad AttributeLoad Call NameLoad Str attr Expr Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad Call NameLoad Str attr Expr Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad Call NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Raise decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str Assign NameStore Yield Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Yield Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str Str Assign NameStore Yield Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list NameLoad decorator_list NameLoad
N/A __future__ absolute_import division print_function with_statement N/A logging N/A os N/A signal N/A subprocess N/A sys tornado.httpclient HTTPClient HTTPError tornado.httpserver HTTPServer tornado.ioloop IOLoop tornado.log gen_log tornado.process fork_processes task_id Subprocess tornado.simple_httpclient SimpleAsyncHTTPClient tornado.testing bind_unused_port ExpectLog AsyncTestCase gen_test tornado.test.util unittest skipIfNonUnix tornado.web RequestHandler Application skip_if_twisted N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A IOLoop configured_class __name__ endswith N/A TwistedIOLoop AsyncIOMainLoop N/A N/A N/A N/A unittest SkipTest Process tests not compatible with TwistedIOLoop or AsyncIOMainLoop N/A ProcessTest N/A N/A unittest TestCase N/A get_app N/A N/A self N/A N/A ProcessHandler N/A RequestHandler N/A get N/A N/A self N/A N/A N/A N/A N/A self get_argument exit None N/A N/A N/A N/A os _exit N/A int N/A N/A self get_argument exit N/A N/A N/A self get_argument signal None N/A N/A N/A N/A os kill N/A N/A os getpid N/A int N/A N/A self get_argument signal N/A N/A N/A self write N/A str N/A N/A os getpid N/A N/A N/A N/A Application N/A N/A / ProcessHandler N/A tearDown N/A N/A self N/A N/A N/A N/A N/A task_id None N/A N/A N/A N/A logging error aborting child process from tearDown N/A N/A N/A logging shutdown N/A N/A N/A os _exit 1 N/A N/A N/A signal alarm 0 N/A N/A N/A N/A super ProcessTest self tearDown N/A test_multi_process N/A N/A self N/A N/A N/A N/A skip_if_twisted N/A N/A ExpectLog gen_log (Starting .* processes|child .* exited|uncaught exception) N/A N/A N/A N/A self assertFalse N/A N/A IOLoop initialized N/A N/A sock port N/A bind_unused_port get_url N/A N/A path N/A N/A N/A N/A http://127.0.0.1:%d%s N/A port path N/A N/A N/A N/A signal alarm 5 N/A N/A N/A id N/A fork_processes 3 max_restarts 3 N/A N/A N/A self assertTrue N/A id None N/A N/A N/A signal alarm 5 N/A N/A N/A SystemExit N/A e N/A N/A N/A N/A self assertEqual N/A e code 0 N/A N/A N/A self assertTrue N/A N/A task_id None N/A N/A N/A sock close N/A N/A N/A N/A N/A id N/A 0 1 N/A N/A N/A N/A self assertEqual id N/A task_id N/A server N/A HTTPServer N/A N/A self get_app N/A N/A N/A server add_sockets N/A sock N/A N/A N/A N/A N/A IOLoop current start N/A N/A N/A id 2 N/A N/A N/A N/A self assertEqual id N/A task_id N/A N/A N/A sock close N/A client N/A HTTPClient SimpleAsyncHTTPClient fetch N/A N/A url fail_ok N/A False N/A N/A N/A N/A N/A N/A client fetch N/A get_url url N/A N/A N/A HTTPError N/A e N/A N/A N/A N/A fail_ok N/A N/A e code 599 N/A N/A N/A N/A N/A fetch /?exit=2 fail_ok True N/A N/A fetch /?exit=3 fail_ok True N/A N/A int N/A N/A fetch / body N/A N/A fetch /?exit=0 fail_ok True N/A pid N/A int N/A N/A fetch / body N/A N/A fetch /?exit=4 fail_ok True N/A pid2 N/A int N/A N/A fetch / body N/A N/A N/A self assertNotEqual pid pid2 N/A N/A fetch /?exit=0 fail_ok True N/A N/A N/A os _exit 0 N/A N/A N/A Exception N/A N/A N/A N/A logging error exception in child process %d id exc_info True N/A N/A N/A skipIfNonUnix SubprocessTest N/A AsyncTestCase N/A test_subprocess N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A IOLoop configured_class __name__ endswith LayeredTwistedIOLoop N/A N/A N/A N/A unittest SkipTest Subprocess tests not compatible with LayeredTwistedIOLoop N/A subproc N/A Subprocess N/A N/A sys executable -u -i stdin N/A Subprocess STREAM stdout N/A Subprocess STREAM stderr N/A subprocess STDOUT io_loop N/A self io_loop N/A N/A N/A self addCleanup N/A N/A N/A N/A N/A N/A os kill N/A subproc pid N/A signal SIGTERM N/A N/A N/A N/A subproc stdout read_until >>>  N/A self stop N/A N/A N/A self wait N/A N/A N/A N/A subproc stdin write print('hello')
 N/A N/A N/A N/A subproc stdout read_until N/A self stop N/A data N/A N/A self wait N/A N/A N/A self assertEqual data hello
 N/A N/A N/A N/A subproc stdout read_until >>>  N/A self stop N/A N/A N/A self wait N/A N/A N/A N/A subproc stdin write raise SystemExit
 N/A N/A N/A N/A subproc stdout read_until_close N/A self stop N/A data N/A N/A self wait N/A N/A N/A self assertEqual data N/A test_close_stdin N/A N/A self N/A N/A N/A subproc N/A Subprocess N/A N/A sys executable -u -i stdin N/A Subprocess STREAM stdout N/A Subprocess STREAM stderr N/A subprocess STDOUT io_loop N/A self io_loop N/A N/A N/A self addCleanup N/A N/A N/A N/A N/A N/A os kill N/A subproc pid N/A signal SIGTERM N/A N/A N/A N/A subproc stdout read_until >>>  N/A self stop N/A N/A N/A self wait N/A N/A N/A N/A subproc stdin close N/A N/A N/A N/A subproc stdout read_until_close N/A self stop N/A data N/A N/A self wait N/A N/A N/A self assertEqual data N/A test_stderr N/A N/A self N/A N/A N/A subproc N/A Subprocess N/A N/A sys executable -u -c import sys; sys.stderr.write('hello\n') stderr N/A Subprocess STREAM io_loop N/A self io_loop N/A N/A N/A self addCleanup N/A N/A N/A N/A N/A N/A os kill N/A subproc pid N/A signal SIGTERM N/A N/A N/A N/A subproc stderr read_until N/A self stop N/A data N/A N/A self wait N/A N/A N/A self assertEqual data hello
 N/A test_sigchild N/A N/A self N/A N/A N/A N/A skip_if_twisted N/A N/A N/A Subprocess initialize io_loop N/A self io_loop N/A N/A N/A self addCleanup N/A Subprocess uninitialize N/A subproc N/A Subprocess N/A N/A sys executable -c pass io_loop N/A self io_loop N/A N/A N/A subproc set_exit_callback N/A self stop N/A ret N/A N/A self wait N/A N/A N/A self assertEqual ret 0 N/A N/A N/A self assertEqual N/A subproc returncode ret N/A test_sigchild_future N/A N/A self N/A N/A N/A N/A skip_if_twisted N/A N/A N/A Subprocess initialize N/A N/A N/A self addCleanup N/A Subprocess uninitialize N/A subproc N/A Subprocess N/A N/A sys executable -c pass N/A ret N/A N/A N/A subproc wait_for_exit N/A N/A N/A self assertEqual ret 0 N/A N/A N/A self assertEqual N/A subproc returncode ret N/A gen_test test_sigchild_signal N/A N/A self N/A N/A N/A N/A skip_if_twisted N/A N/A N/A Subprocess initialize io_loop N/A self io_loop N/A N/A N/A self addCleanup N/A Subprocess uninitialize N/A subproc N/A Subprocess N/A N/A sys executable -c import time; time.sleep(30) io_loop N/A self io_loop N/A N/A N/A subproc set_exit_callback N/A self stop N/A N/A N/A os kill N/A subproc pid N/A signal SIGTERM N/A ret N/A N/A self wait N/A N/A N/A self assertEqual N/A subproc returncode ret N/A N/A N/A self assertEqual ret N/A N/A signal SIGTERM N/A test_wait_for_exit_raise N/A N/A self N/A N/A N/A N/A skip_if_twisted N/A N/A N/A Subprocess initialize N/A N/A N/A self addCleanup N/A Subprocess uninitialize N/A subproc N/A Subprocess N/A N/A sys executable -c import sys; sys.exit(1) N/A N/A N/A self assertRaises N/A subprocess CalledProcessError cm N/A N/A N/A N/A N/A subproc wait_for_exit N/A N/A N/A self assertEqual N/A N/A cm exception returncode 1 N/A gen_test test_wait_for_exit_raise_disabled N/A N/A self N/A N/A N/A N/A skip_if_twisted N/A N/A N/A Subprocess initialize N/A N/A N/A self addCleanup N/A Subprocess uninitialize N/A subproc N/A Subprocess N/A N/A sys executable -c import sys; sys.exit(1) N/A ret N/A N/A N/A subproc wait_for_exit raise_error False N/A N/A N/A self assertEqual ret 1 N/A gen_test N/A skipIfNonUnix