Explorar o código

Merge branch 'master' of https://github.com/jupyterlab/jupyterlab

Steven Silvester %!s(int64=7) %!d(string=hai) anos
pai
achega
b9d8c4c61f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      jupyterlab/tests/utils.py

+ 3 - 0
jupyterlab/tests/utils.py

@@ -71,6 +71,9 @@ class LabTestBase(NotebookTestBase):
         started = Event()
 
         def start_thread():
+            if 'asyncio' in sys.modules:
+                import asyncio
+                asyncio.set_event_loop(asyncio.new_event_loop())
             app = cls.notebook = LabApp(
                 app_dir=lab_dir,
                 port=cls.port,