diff --git a/lumen/tests/sources/conftest.py b/lumen/tests/sources/conftest.py index 73b892fd..d3ce7572 100644 --- a/lumen/tests/sources/conftest.py +++ b/lumen/tests/sources/conftest.py @@ -1,3 +1,5 @@ +import asyncio + import pandas as pd import pytest @@ -19,3 +21,9 @@ def source_tables(): } yield tables pd.set_option('mode.string_storage', string) + + +try: + asyncio.get_event_loop() +except (RuntimeError, DeprecationWarning): + asyncio.set_event_loop(asyncio.new_event_loop())