Skip to content

Commit

Permalink
Work-around for ayncio bug on Windows & Python >= 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Urlus authored and Ralph Urlus committed Mar 29, 2021
1 parent 2664a2a commit 80fa64b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/phik_python/integration/test_notebooks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import sys
import asyncio
from phik_python.bases import NotebookTest
from phik import resources
import pytest

# See https://bugs.python.org/issue37373 :(
if sys.version_info[0] == 3 and sys.version_info[1] >= 8 and sys.platform.startswith('win'):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())


@pytest.mark.filterwarnings("ignore:Session._key_changed is deprecated")
class PipelineNotebookTest(NotebookTest):
Expand Down

0 comments on commit 80fa64b

Please sign in to comment.