diff --git a/jupyterlab_launcher/tests/utils.py b/jupyterlab_launcher/tests/utils.py index f6f98c02..9c736f9d 100644 --- a/jupyterlab_launcher/tests/utils.py +++ b/jupyterlab_launcher/tests/utils.py @@ -73,6 +73,9 @@ def tmp(*parts): workspaces_dir=pjoin(here, 'workspaces')) def start_thread(): + if 'asyncio' in sys.modules: + import asyncio + asyncio.set_event_loop(asyncio.new_event_loop()) app = cls.notebook = LabLauncherApp( port=cls.port, port_retries=0,