Skip to content

Commit 63cbfa3

Browse files
author
Deepak kudi
committed
test: address event loop policy review
1 parent 4ec829c commit 63cbfa3

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

pytest_asyncio/plugin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,6 @@ def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
735735

736736
asyncio_marker = _resolve_asyncio_marker(metafunc.definition)
737737
if asyncio_marker is None:
738-
if _uses_asyncio_fixtures(metafunc):
739-
_add_fixture_to_metafunc(metafunc, "event_loop_policy")
740738
return
741739
marker_loop_scope, marker_selected_factory_names = _parse_asyncio_marker(
742740
asyncio_marker

tests/markers/test_function_scope.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ def test_parametrized_loop_policy_does_not_parametrize_sync_tests(
169169
asyncio.get_event_loop_policy(),
170170
asyncio.get_event_loop_policy(),
171171
],
172-
ids=["policy_a", "policy_b"],
173172
)
174173
def event_loop_policy(request):
175174
return request.param
@@ -201,7 +200,6 @@ def test_parametrized_loop_policy_parametrizes_sync_tests_with_async_fixtures(
201200
asyncio.get_event_loop_policy(),
202201
asyncio.get_event_loop_policy(),
203202
],
204-
ids=["policy_a", "policy_b"],
205203
)
206204
def event_loop_policy(request):
207205
return request.param
@@ -232,7 +230,6 @@ def test_parametrized_loop_policy_parametrizes_auto_mode_async_fixtures(
232230
asyncio.get_event_loop_policy(),
233231
asyncio.get_event_loop_policy(),
234232
],
235-
ids=["policy_a", "policy_b"],
236233
)
237234
def event_loop_policy(request):
238235
return request.param

0 commit comments

Comments
 (0)