Skip to content

RuntimeWarning in test_coroutines.CoroutineTest.test_await_17 #131707

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

Closed
graingert opened this issue Mar 25, 2025 · 1 comment
Closed

RuntimeWarning in test_coroutines.CoroutineTest.test_await_17 #131707

graingert opened this issue Mar 25, 2025 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@graingert
Copy link
Contributor

graingert commented Mar 25, 2025

Bug report

Bug description:

test_await_17 (test.test_coroutines.CoroutineTest.test_await_17) ... Warning -- Unraisable exception
Exception ignored while finalizing coroutine <coroutine object CoroutineTest.test_await_17.<locals>.A.__anext__ at 0x10205e970>:
Traceback (most recent call last):
  File "/Users/admin/actions-runner/_work/cpython/cpython/Lib/warnings.py", line 700, in _warn_unawaited_coroutine
    warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
RuntimeWarning: coroutine 'CoroutineTest.test_await_17.<locals>.A.__anext__' was never awaited
ok

CPython versions tested on:

3.14, CPython main branch

Operating systems tested on:

No response

Linked PRs

@graingert graingert added the type-bug An unexpected behavior, bug, or error label Mar 25, 2025
@graingert
Copy link
Contributor Author

caused by #131671

@graingert graingert changed the title ResourceWarning in test_coroutines.CoroutineTest.test_await_17 RuntimeWarning in test_coroutines.CoroutineTest.test_await_17 Mar 25, 2025
graingert added a commit to graingert/cpython that referenced this issue Mar 25, 2025
graingert added a commit to graingert/cpython that referenced this issue Mar 25, 2025
sobolevn pushed a commit that referenced this issue Mar 25, 2025
#131708)

gh-131707: fix unawaited coroutine warning in test_coroutines.CoroutineTest.test_17
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 1, 2025
…orouti… (python#131708)

pythongh-131707: fix unawaited coroutine warning in test_coroutines.CoroutineTest.test_17
seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
…orouti… (python#131708)

pythongh-131707: fix unawaited coroutine warning in test_coroutines.CoroutineTest.test_17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants