Skip to content

RuntimeWarning in test_coroutines.CoroutineTest.test_await_17 #131707

Closed
@graingert

Description

@graingert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions