Module ImportFrom alias alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad TryFinally body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad TryFinally body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Break decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad With Call NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args defaults BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Yield Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Assert Call AttributeLoad NameLoad attr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list With Call AttributeLoad NameLoad attr Num NameStore body With Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Str decorator_list decorator_list Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args defaults Num Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args defaults BinOpDiv Num Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Yield Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Raise Call AttributeLoad NameLoad attr Num decorator_list AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Yield Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr BinOpDiv Num Num decorator_list AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Yield Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A __future__ absolute_import division print_function with_statement N/A contextlib N/A datetime N/A functools N/A socket N/A sys N/A threading N/A time tornado gen tornado.ioloop IOLoop TimeoutError tornado.stack_context ExceptionStackContext StackContext wrap NullContext tornado.testing AsyncTestCase bind_unused_port tornado.test.util unittest skipIfNonUnix skipOnTravis N/A N/A concurrent futures N/A N/A N/A ImportError N/A N/A futures None TestIOLoop N/A AsyncTestCase N/A test_add_callback_wakeup N/A N/A self N/A N/A callback N/A N/A N/A N/A N/A N/A self called True N/A N/A N/A self stop N/A schedule_callback N/A N/A N/A N/A N/A N/A self called False N/A N/A N/A N/A self io_loop add_callback callback N/A N/A self start_time N/A N/A time time N/A N/A N/A N/A N/A self io_loop add_timeout N/A N/A N/A self io_loop time schedule_callback N/A N/A N/A self wait N/A N/A N/A self assertAlmostEqual N/A N/A time time N/A self start_time places 2 N/A N/A N/A self assertTrue N/A self called N/A skipOnTravis test_add_callback_wakeup_other_thread N/A N/A self N/A N/A target N/A N/A N/A N/A N/A N/A N/A time sleep 0.01 N/A N/A self stop_time N/A N/A time time N/A N/A N/A N/A self io_loop add_callback N/A self stop N/A N/A thread N/A N/A threading Thread target target N/A N/A N/A N/A self io_loop add_callback N/A thread start N/A N/A N/A self wait N/A N/A N/A self assertAlmostEqual N/A N/A time time N/A self stop_time places 2 N/A N/A N/A thread join N/A skipOnTravis test_add_timeout_timedelta N/A N/A self N/A N/A N/A N/A N/A N/A self io_loop add_timeout N/A N/A datetime timedelta microseconds 1 N/A self stop N/A N/A N/A self wait N/A test_multiple_add N/A N/A self N/A N/A N/A N/A sock port N/A bind_unused_port N/A N/A N/A N/A N/A N/A self io_loop add_handler N/A N/A sock fileno N/A N/A N/A fd events N/A None N/A IOLoop READ N/A N/A N/A self assertRaises Exception N/A N/A self io_loop add_handler N/A N/A sock fileno N/A N/A N/A fd events N/A None N/A IOLoop READ N/A N/A N/A N/A N/A self io_loop remove_handler N/A N/A sock fileno N/A N/A N/A sock close N/A test_remove_without_add N/A N/A self N/A N/A N/A N/A sock port N/A bind_unused_port N/A N/A N/A N/A N/A N/A self io_loop remove_handler N/A N/A sock fileno N/A N/A N/A N/A sock close N/A test_add_callback_from_signal N/A N/A self N/A N/A N/A N/A N/A N/A self io_loop add_callback_from_signal N/A self stop N/A N/A N/A self wait N/A test_add_callback_from_signal_other_thread N/A N/A self N/A N/A N/A other_ioloop N/A IOLoop N/A thread N/A N/A threading Thread target N/A other_ioloop start N/A N/A N/A thread start N/A N/A N/A other_ioloop add_callback_from_signal N/A other_ioloop stop N/A N/A N/A thread join N/A N/A N/A other_ioloop close N/A test_add_callback_while_closing N/A N/A self N/A N/A N/A closing N/A N/A threading Event target N/A N/A N/A N/A N/A N/A N/A other_ioloop add_callback N/A other_ioloop stop N/A N/A N/A other_ioloop start N/A N/A N/A closing set N/A N/A N/A other_ioloop close all_fds True N/A N/A other_ioloop N/A IOLoop N/A thread N/A N/A threading Thread target target N/A N/A N/A thread start N/A N/A N/A closing wait N/A i N/A range 1000 N/A N/A N/A N/A N/A N/A other_ioloop add_callback N/A N/A N/A N/A None N/A N/A N/A RuntimeError N/A e N/A N/A N/A N/A self assertEqual IOLoop is closing N/A str e N/A N/A test_handle_callback_exception N/A N/A self N/A N/A handle_callback_exception N/A N/A callback N/A N/A N/A N/A N/A self assertIs N/A N/A N/A sys exc_info N/A 0 ZeroDivisionError N/A N/A N/A self stop N/A N/A N/A N/A self io_loop handle_callback_exception handle_callback_exception N/A N/A NullContext N/A N/A N/A N/A N/A self io_loop add_callback N/A N/A N/A N/A N/A 1 0 N/A N/A N/A self wait N/A test_read_while_writeable N/A N/A self N/A N/A N/A N/A client server N/A N/A socket socketpair N/A N/A handler N/A N/A fd events N/A N/A N/A N/A N/A self assertEqual events N/A IOLoop READ N/A N/A N/A self stop N/A N/A N/A N/A N/A self io_loop add_handler N/A N/A client fileno handler N/A IOLoop READ N/A N/A N/A N/A self io_loop add_timeout N/A N/A N/A N/A self io_loop time 0.01 N/A N/A functools partial N/A server send asdf N/A N/A N/A self wait N/A N/A N/A N/A self io_loop remove_handler N/A N/A client fileno N/A N/A N/A N/A client close N/A N/A N/A server close N/A skipIfNonUnix test_remove_timeout_after_fire N/A N/A self N/A N/A N/A handle N/A N/A N/A self io_loop add_timeout N/A N/A N/A self io_loop time N/A N/A self stop N/A N/A N/A self wait N/A N/A N/A N/A self io_loop remove_timeout handle N/A test_remove_timeout_cleanup N/A N/A self N/A N/A N/A i N/A range 2000 N/A N/A timeout N/A N/A N/A self io_loop add_timeout N/A N/A N/A N/A self io_loop time 3600 N/A N/A N/A N/A None N/A N/A N/A N/A self io_loop remove_timeout timeout N/A N/A N/A N/A self io_loop add_callback N/A N/A N/A N/A N/A N/A N/A self io_loop add_callback N/A self stop N/A N/A N/A self wait N/A N/A TestIOLoopCurrent N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self io_loop N/A IOLoop N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self io_loop close N/A test_current N/A N/A self N/A N/A f N/A N/A N/A N/A N/A N/A self current_io_loop N/A N/A IOLoop current N/A N/A N/A N/A self io_loop stop N/A N/A N/A N/A N/A self io_loop add_callback f N/A N/A N/A N/A self io_loop start N/A N/A N/A self assertIs N/A self current_io_loop N/A self io_loop N/A N/A TestIOLoopAddCallback N/A AsyncTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestIOLoopAddCallback self setUp N/A N/A self active_contexts N/A N/A add_callback N/A N/A self callback N/A args kwargs N/A N/A N/A N/A N/A self io_loop add_callback callback args kwargs N/A context N/A N/A self name N/A N/A N/A N/A N/A N/A self active_contexts append name N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self active_contexts pop name N/A N/A contextlib contextmanager test_pre_wrap N/A N/A self N/A N/A f1 N/A N/A N/A N/A N/A N/A N/A self assertIn c1 N/A self active_contexts N/A N/A N/A self assertNotIn c2 N/A self active_contexts N/A N/A N/A self stop N/A N/A N/A StackContext N/A N/A functools partial N/A self context c1 N/A N/A wrapped N/A wrap f1 N/A N/A StackContext N/A N/A functools partial N/A self context c2 N/A N/A N/A N/A self add_callback wrapped N/A N/A N/A self wait N/A test_pre_wrap_with_args N/A N/A self N/A N/A f1 N/A N/A foo bar N/A N/A N/A N/A N/A self assertIn c1 N/A self active_contexts N/A N/A N/A self assertNotIn c2 N/A self active_contexts N/A N/A N/A self stop N/A foo bar N/A N/A N/A StackContext N/A N/A functools partial N/A self context c1 N/A N/A wrapped N/A wrap f1 N/A N/A StackContext N/A N/A functools partial N/A self context c2 N/A N/A N/A N/A self add_callback wrapped 1 bar 2 N/A result N/A N/A self wait N/A N/A N/A self assertEqual result N/A 1 2 N/A N/A TestIOLoopAddCallbackFromSignal N/A TestIOLoopAddCallback N/A add_callback N/A N/A self callback N/A args kwargs N/A N/A N/A N/A N/A self io_loop add_callback_from_signal callback args kwargs N/A N/A TestIOLoopFutures N/A AsyncTestCase N/A test_add_future_threads N/A N/A self N/A N/A N/A N/A N/A futures ThreadPoolExecutor 1 pool N/A N/A N/A N/A N/A self io_loop add_future N/A N/A pool submit N/A N/A N/A N/A None N/A N/A N/A future N/A N/A N/A self stop future N/A future N/A N/A self wait N/A N/A N/A self assertTrue N/A N/A future done N/A N/A N/A self assertTrue N/A N/A N/A future result None N/A test_add_future_stack_context N/A N/A self N/A N/A N/A ready N/A N/A threading Event task N/A N/A N/A N/A N/A N/A N/A ready wait 1 N/A N/A N/A ready isSet timed out N/A N/A Exception worker N/A callback N/A N/A future N/A N/A N/A N/A self future future N/A N/A Exception callback N/A handle_exception N/A N/A typ value traceback N/A N/A N/A N/A self exception value N/A N/A N/A self stop N/A True N/A N/A N/A N/A futures ThreadPoolExecutor 1 pool N/A N/A N/A ExceptionStackContext handle_exception N/A N/A N/A N/A N/A self io_loop add_future N/A N/A pool submit task callback N/A N/A N/A ready set N/A N/A N/A self wait N/A N/A N/A self assertEqual N/A N/A N/A self exception args N/A 0 callback N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self future exception args N/A 0 worker N/A N/A N/A N/A unittest skipIf N/A futures None futures module not present TestIOLoopRunSync N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self io_loop N/A IOLoop N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self io_loop close N/A test_sync_result N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self io_loop run_sync N/A N/A N/A N/A 42 42 N/A test_sync_exception N/A N/A self N/A N/A N/A N/A N/A self assertRaises ZeroDivisionError N/A N/A N/A N/A N/A self io_loop run_sync N/A N/A N/A N/A N/A 1 0 N/A test_async_result N/A N/A self N/A N/A f N/A N/A N/A N/A N/A N/A N/A N/A gen Task N/A N/A self io_loop add_callback N/A N/A N/A gen Return 42 N/A N/A gen coroutine N/A N/A N/A self assertEqual N/A N/A N/A self io_loop run_sync f 42 N/A test_async_exception N/A N/A self N/A N/A f N/A N/A N/A N/A N/A N/A N/A N/A gen Task N/A N/A self io_loop add_callback N/A N/A 1 0 N/A N/A gen coroutine N/A N/A N/A self assertRaises ZeroDivisionError N/A N/A N/A N/A N/A self io_loop run_sync f N/A test_current N/A N/A self N/A N/A f N/A N/A N/A N/A N/A N/A N/A self assertIs N/A N/A IOLoop current N/A self io_loop N/A N/A N/A N/A N/A self io_loop run_sync f N/A test_timeout N/A N/A self N/A N/A f N/A N/A N/A N/A N/A N/A N/A N/A gen Task N/A N/A self io_loop add_timeout N/A N/A N/A N/A self io_loop time 1 N/A N/A gen coroutine N/A N/A N/A self assertRaises TimeoutError N/A N/A self io_loop run_sync f timeout 0.01 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main