Skip to content

Commit 3f63083

Browse files
[PR #10851/e5d1240 backport][3.13] remove use of deprecated policy API from tests (#10851) (#11521)
Co-authored-by: Kumar Aditya <[email protected]>
1 parent 3bdbbe9 commit 3f63083

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGES/10851.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed pytest plugin to not use deprecated :py:mod:`asyncio` policy APIs.

CHANGES/10851.contrib.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Updated tests to avoid using deprecated :py:mod:`asyncio` policy APIs and
2+
make it compatible with Python 3.14.

tests/test_loop.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ async def on_startup_hook(self, app):
3333
async def test_on_startup_hook(self) -> None:
3434
self.assertTrue(self.on_startup_called)
3535

36-
def test_default_loop(self) -> None:
37-
self.assertIs(self.loop, asyncio.get_event_loop_policy().get_event_loop())
38-
3936

4037
def test_default_loop(loop: asyncio.AbstractEventLoop) -> None:
4138
assert asyncio.get_event_loop() is loop

0 commit comments

Comments
 (0)