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

Test suite failing under Python 3.14.0a4 #557

Closed
freakboy3742 opened this issue Jan 27, 2025 · 1 comment · Fixed by #558
Closed

Test suite failing under Python 3.14.0a4 #557

freakboy3742 opened this issue Jan 27, 2025 · 1 comment · Fixed by #558
Labels
bug A crash or error in behavior.

Comments

@freakboy3742
Copy link
Member

Describe the bug

Python 3.14.0a4 has just been released; it makes some changes to asyncio that cause the Rubicon test suite to fail:

_____________________ ERROR collecting tests/test_async.py _____________________
tests/test_async.py:7: in <module>
    from rubicon.objc.eventloop import EventLoopPolicy
.tox/py/lib/python3.14/site-packages/rubicon/objc/eventloop.py:659: in <module>
    class EventLoopPolicy(events.AbstractEventLoopPolicy):
E   AttributeError: module 'asyncio.events' has no attribute 'AbstractEventLoopPolicy'. Did you mean: 'AbstractEventLoop'?
=============================== warnings summary ===============================
.tox/py/lib/python3.14/site-packages/rubicon/objc/eventloop.py:6
.tox/py/lib/python3.14/site-packages/rubicon/objc/eventloop.py:6
  /Users/runner/work/rubicon-objc/rubicon-objc/.tox/py/lib/python3.14/site-packages/rubicon/objc/eventloop.py:6: DeprecationWarning: 'asyncio.DefaultEventLoopPolicy' is deprecated and slated for removal in Python 3.16
    from asyncio import (

Steps to reproduce

Run Rubicon's CI on Python 3.14.0a4

Expected behavior

Test suite should pass

Screenshots

No response

Environment

  • Operating System: all
  • Python version: 3.14.0a4+

Logs


Additional context

No response

@freakboy3742 freakboy3742 added the bug A crash or error in behavior. label Jan 27, 2025
@freakboy3742
Copy link
Member Author

See python/cpython#127949 for the change that caused these failures.

It looks like there's an immediate workaround in using the _AbstractEventLoopPolicy alias; longer term (before the release of Python 3.16), we're going to need to adapt all usage of event loops to use direct instantiation instead of policy-based instantiation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant