We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 688a16d commit 50e42c0Copy full SHA for 50e42c0
tests/conftest.py
@@ -1,5 +1,6 @@
1
from __future__ import annotations
2
3
+import asyncio
4
import os
5
6
import pytest
@@ -50,14 +51,14 @@ async def page(browser):
50
51
52
@pytest.fixture(scope="session")
53
async def browser(pytestconfig: Config):
- if os.name == "nt": # pragma: no cover
54
- pytest.skip("Browser tests not supported on Windows")
55
async with async_playwright() as pw:
56
yield await pw.chromium.launch(headless=not bool(pytestconfig.option.headed))
57
58
59
60
def event_loop():
+ if os.name == "nt": # pragma: no cover
61
+ asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
62
with open_event_loop() as loop:
63
yield loop
64
0 commit comments