-
-
Notifications
You must be signed in to change notification settings - Fork 884
Upgrade to py12 #1354
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
Upgrade to py12 #1354
Conversation
✔️ Changelog found.Thank you for adding a description of the changes |
handler_event.clear() | ||
resp = await self.make_reqest(client=client) | ||
assert resp.status == 200 | ||
await asyncio.wait_for(handler_event.wait(), timeout=1) | ||
await asyncio.wait_for(method_called_event.wait(), timeout=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, a simple asyncio.sleep(0.00000000...1)
would be enough as well. It just needs to be non-zero so that another task is scheduled before our assert. However, using a side effect and waiting for an event is more robust to future changes or inconsistencies across different installations.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## dev-3.x #1354 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 369 369
Lines 9448 9449 +1
=========================================
+ Hits 9448 9449 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Description
This PR introduces compatibility updates for Python 3.12, addressing changes and deprecations to ensure seamless functionality with the latest Python version. Changes include updates to the GitHub Actions workflow, project configurations, dependency adjustments, and test case modifications to align with Python 3.12's features and the newly adopted PEP 678 enhancements.
Fixes # (No issue linked, direct improvement)
aiohttp
(3.9.0b0
), which is currently the only version compatible with Python 3.12, as discussed here.Type of change
How Has This Been Tested?
Testing was performed by installing the project and executing pytests across various Python versions with different extras enabled. The following environments were tested:
cli
due to a dependency version conflictcli
anddocs
due to dependency version conflictsTest Configuration:
All tests pass across the tested configurations.
Checklist:
This is a draft PR as it relies on the beta version of
aiohttp
(3.9.0b0
), which is currently the only version compatible with Python 3.12, as discussed here.