Skip to content

Commit 9007363

Browse files
committed
see if we can fix win tests
1 parent 688a16d commit 9007363

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import asyncio
34
import os
45

56
import pytest
@@ -51,7 +52,7 @@ async def page(browser):
5152
@pytest.fixture(scope="session")
5253
async def browser(pytestconfig: Config):
5354
if os.name == "nt": # pragma: no cover
54-
pytest.skip("Browser tests not supported on Windows")
55+
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
5556
async with async_playwright() as pw:
5657
yield await pw.chromium.launch(headless=not bool(pytestconfig.option.headed))
5758

0 commit comments

Comments
 (0)