8000 Fix the test failures in Python 3.13 due to not accepting name=… in tests by nolar · Pull Request #1173 · nolar/kopf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix the test failures in Python 3.13 due to not accepting name=… in tests #1173

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 1 commit into from
May 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/utilities/aiotasks/test_coro_cancellation.py
5526
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ async def f(mock):
return mock()


def factory(loop, coro_or_mock, context=None):
# Kwargs are accepted to match the signatures, but are unused/not passed through due to no need.
# Usually those are `name` & `context`, as in `asyncio.create_task(…)`.
def factory(loop, coro_or_mock, **_):
coro = coro_or_mock._mock_wraps if isinstance(coro_or_mock, AsyncMock) else coro_or_mock
return asyncio.Task(coro, loop=loop)

Expand Down
Loading
0