()
| 200 | def test_result_with_success(self): |
| 201 | # TODO(brian@sweetapp.com): This test is timing dependent. |
| 202 | def notification(): |
| 203 | # Wait until the main thread is waiting for the result. |
| 204 | time.sleep(1) |
| 205 | f1.set_result(42) |
| 206 | |
| 207 | f1 = create_future(state=PENDING) |
| 208 | t = threading.Thread(target=notification) |
nothing calls this directly
no test coverage detected