Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion streamz/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_io_loop(asynchronous=None):
return client.loop

if not _io_loops:
loop = IOLoop()
loop = IOLoop(make_current=False)
thread = threading.Thread(target=loop.start)
thread.daemon = True
thread.start()
Expand Down
3 changes: 2 additions & 1 deletion streamz/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ def test_timed_window_metadata():
]


def test_timed_window_timedelta(clean): # noqa: F811
@pytest.mark.asyncio
async def test_timed_window_timedelta(clean): # noqa: F811
pytest.importorskip('pandas')
source = Stream(asynchronous=True)
a = source.timed_window('10ms')
Expand Down
7 changes: 1 addition & 6 deletions streamz/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,11 @@ def double(x):

@contextmanager
def pristine_loop():
IOLoop.clear_instance()
IOLoop.clear_current()
loop = IOLoop()
loop.make_current()
loop = IOLoop(make_current=False)
try:
yield loop
finally:
loop.close(all_fds=True)
IOLoop.clear_instance()
IOLoop.clear_current()


def gen_test(timeout=10):
Expand Down
Loading