Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-122858: Deprecate asyncio.iscoroutinefunction #122875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 11, 2024
Merged
Prev Previous commit
Next Next commit
test_pep492
  • Loading branch information
Wulian233 authored Aug 11, 2024
commit c1f2743db688e4fa58f9d099320000a629267a8c
3 changes: 2 additions & 1 deletion 3 Lib/test/test_asyncio/test_pep492.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import asyncio
from test.test_asyncio import utils as test_utils
from test.support.warnings_helper import ignore_warnings


def tearDownModule():
Expand Down Expand Up @@ -124,7 +125,7 @@ def foo(): yield

self.assertFalse(asyncio.iscoroutine(foo()))


@ignore_warnings(category=DeprecationWarning)
Wulian233 marked this conversation as resolved.
Show resolved Hide resolved
def test_iscoroutinefunction(self):
async def foo(): pass
self.assertTrue(asyncio.iscoroutinefunction(foo))
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.