Skip to content

Commit 0b0f41a

Browse files
committed
Remove explicit use of IOLoop.clear_current()
IOLoop.clear_current is deprecated since Tornado 6.2 If proactive manipulation of the running loop is required, the API docs say to use asyncio.set_event_loop()
1 parent feb649d commit 0b0f41a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

streamz/utils_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ def double(x):
4343

4444
@contextmanager
4545
def pristine_loop():
46-
IOLoop.clear_current()
4746
loop = IOLoop()
4847
try:
4948
yield loop
5049
finally:
5150
loop.close(all_fds=True)
52-
IOLoop.clear_current()
5351

5452

5553
def gen_test(timeout=10):

0 commit comments

Comments
 (0)