| 149 | @gen_test |
| 150 | def test_no_calling(self): |
| 151 | class Object(object): |
| 152 | def __init__(self): |
| 153 | self.executor = futures.thread.ThreadPoolExecutor(1) |
| 154 | |
| 155 | @run_on_executor |
| 156 | def f(self): |
| 157 | return 42 |
| 158 | |
| 159 | o = Object() |
| 160 | answer = yield o.f() |
no outgoing calls