Skip to content
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

avoid asyncio bug in 3.12.8 #19225

Merged
merged 4 commits into from
Feb 6, 2025
Merged

avoid asyncio bug in 3.12.8 #19225

merged 4 commits into from
Feb 6, 2025

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Feb 4, 2025

Purpose:

Avoid the following asyncio bug, introduced in python 3.12.8:

.venv/lib/python3.12/site-packages/anyio/pytest_plugin.py:160: in pytest_pyfunc_call
    runner.run_test(pyfuncitem.obj, testargs)
.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2316: in run_test
    self._raise_async_exceptions()
.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py:2220: in _raise_async_exceptions
    raise exceptions[0]
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/staggered.py:108: in run_one_coro
    exceptions[this_index] = e
E   NameError: cannot access free variable 'exceptions' where it is not associated with a value in enclosing scope

python/cpython#128479

Current Behavior:

New Behavior:

Testing Notes:

@arvidn arvidn added the CI CI changes label Feb 4, 2025
@arvidn arvidn added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Feb 4, 2025
.github/workflows/test-single.yml Outdated Show resolved Hide resolved
.github/workflows/test-single.yml Outdated Show resolved Hide resolved
@emlowe emlowe marked this pull request as ready for review February 5, 2025 20:19
@emlowe emlowe requested a review from a team as a code owner February 5, 2025 20:19
@emlowe emlowe requested a review from altendky February 5, 2025 20:19
@emlowe emlowe requested a review from altendky February 5, 2025 21:33
@pmaslana pmaslana merged commit bbc8d25 into release/2.5.1 Feb 6, 2025
864 of 866 checks passed
@pmaslana pmaslana deleted the downgrade-py3.12 branch February 6, 2025 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI changes Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants