-
Notifications
You must be signed in to change notification settings - Fork 58
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
Switch from asyncio.iscoroutinefunction to inspect. #637
base: master
Are you sure you want to change the base?
Switch from asyncio.iscoroutinefunction to inspect. #637
Conversation
3.14 is still failing due to the same function call happening in pytest-asyncio. |
2a84d89
to
ec1c2b9
Compare
The former causes: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead. Fixes: aio-libs#635
ec1c2b9
to
c2a83bb
Compare
I've implemented it in a way that older Pythons use the old way. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #637 +/- ##
==========================================
- Coverage 96.88% 96.57% -0.31%
==========================================
Files 12 12
Lines 770 788 +18
Branches 91 32 -59
==========================================
+ Hits 746 761 +15
- Misses 22 24 +2
- Partials 2 3 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Ah, Dependabot got stuck from 3.8 still being in the tests. Let me clear the Dependabot PRs quickly, which will get us an updated pytest-asyncio. |
Looks like pytest-asyncio still needs some updates. Now it's |
Reported: pytest-dev/pytest-asyncio#1049 |
The former causes: DeprecationWarning:
'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead.
Fixes: #635
What do these changes do?
See the description in the commit message.
Are there changes in behavior for the user?
No
Related issue number
#635
Checklist