Skip to content

Commit 99d574a

Browse files
committed
refactor: Removed obsolete event_loop definitions in test code.
1 parent 0cd4cfa commit 99d574a

File tree

3 files changed

+0
-51
lines changed

3 files changed

+0
-51
lines changed

tests/async_fixtures/test_async_fixtures_scope.py

-32
This file was deleted.

tests/async_fixtures/test_async_fixtures_with_finalizer.py

-9
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ async def test_module_with_get_event_loop_finalizer(port_with_get_event_loop_fin
2020
assert port_with_get_event_loop_finalizer
2121

2222

23-
@pytest.fixture(scope="module")
24-
def event_loop():
25-
"""Change event_loop fixture to module level."""
26-
policy = asyncio.get_event_loop_policy()
27-
loop = policy.new_event_loop()
28-
yield loop
29-
loop.close()
30-
31-
3223
@pytest_asyncio.fixture(loop_scope="module", scope="module")
3324
async def port_with_event_loop_finalizer(request):
3425
def port_finalizer(finalizer):

tests/test_subprocess.py

-10
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77

88
import pytest
99

10-
if sys.platform == "win32":
11-
# The default asyncio event loop implementation on Windows does not
12-
# support subprocesses. Subprocesses are available for Windows if a
13-
# ProactorEventLoop is used.
14-
@pytest.fixture()
15-
def event_loop():
16-
loop = asyncio.ProactorEventLoop()
17-
yield loop
18-
loop.close()
19-
2010

2111
@pytest.mark.asyncio
2212
async def test_subprocess():

0 commit comments

Comments
 (0)