Skip to content

Commit 097fa1e

Browse files
committed
use asyncio.Future
1 parent 80ef4c3 commit 097fa1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_restarter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def test_async_restart_check(config, install_kernel, debug_logging):
192192
km = AsyncIOLoopKernelManager(kernel_name=install_kernel, config=config)
193193

194194
cbs = 0
195-
restarts = [asyncio.futures.Future() for i in range(N_restarts)]
195+
restarts = [asyncio.Future() for i in range(N_restarts)]
196196

197197
def cb():
198198
nonlocal cbs
@@ -249,7 +249,7 @@ async def test_async_restarter_gives_up(config, install_slow_fail_kernel, debug_
249249
km = AsyncIOLoopKernelManager(kernel_name=install_slow_fail_kernel, config=config)
250250

251251
cbs = 0
252-
restarts = [asyncio.futures.Future() for i in range(N_restarts)]
252+
restarts = [asyncio.Future() for i in range(N_restarts)]
253253

254254
def cb():
255255
nonlocal cbs
@@ -258,7 +258,7 @@ def cb():
258258
restarts[cbs].set_result(True)
259259
cbs += 1
260260

261-
died = asyncio.futures.Future()
261+
died = asyncio.Future()
262262

263263
def on_death():
264264
died.set_result(True)

0 commit comments

Comments
 (0)