Skip to content

Commit 8402b7b

Browse files
authored
test: Remove deprecated asyncio.WindowsSelectorEventLoopPolicy (#4704)
1 parent 404bedb commit 8402b7b

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

docs/examples/testing/test_subprocess_sse.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
Test the app running in a subprocess
33
"""
44

5-
import asyncio
65
import pathlib
7-
import sys
86
from collections.abc import AsyncIterator
97

108
import httpx
@@ -13,10 +11,6 @@
1311

1412
from litestar.testing import subprocess_async_client
1513

16-
if sys.platform == "win32":
17-
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
18-
19-
2014
ROOT = pathlib.Path(__file__).parent
2115

2216

tests/unit/test_testing/test_sub_client/test_subprocess_client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
Test the app running in a subprocess
33
"""
44

5-
import asyncio
65
import pathlib
7-
import sys
86
from collections.abc import AsyncIterator, Iterator
97

108
import httpx
@@ -14,9 +12,6 @@
1412
from litestar.testing import subprocess_async_client, subprocess_sync_client
1513
from litestar.testing.client.subprocess_client import StartupError, run_app
1614

17-
if sys.platform == "win32":
18-
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
19-
2015
ROOT = pathlib.Path(__file__).parent
2116
APP = "demo:app"
2217

0 commit comments

Comments
 (0)