-
Notifications
You must be signed in to change notification settings - Fork 41
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
Bugfix/126 coroutine deprecated warnings #134
base: master
Are you sure you want to change the base?
Conversation
…yncio.coroutine decorators.
Also, somewhat interestingly, the errors you are getting on your AppVeyor CI did not occur for me on Python3.7.
(for reference). Not quite sure what is going on here. |
Hi, Thank you for the PR. The first error est related to the way tests must be called: python -m unittest test/ The If you run the tests this way you will have the same error as the one you see in the CI. Unfortunately, this shows that deprecating This means that in order to stop using old-style coroutines, first, we need to be sure that we can drop the support of Python 3.4 (since it reached EOL, it's probably OK). Then, we need to remove all the code which treats old-style and new style coroutines differently (especially in tests) and ensures it works will all other current versions of Python. On a side node, there are a lot of changes required to make asynctest is compatible with Python 3.8. Until I figure out how to deal with Python 3.8, I don't think that it's worth spending to much time on this issue, since asynctest can't be used with the version that shows these deprecation messages anyway. |
@Martiusweb, any updates on this? As Python 3.8 is becoming the default in distros (e.g. Debian), these issues become serious. See e.g. #954554 |
As I just commented in the other bug, maybe this will solve most of the
problems people have with Python 3.8, but people should migrate to
AsyncMock.
I will try to find some time to look at this patch soon, but I'm not
committing on anything.
Le jeu. 30 avr. 2020 à 10:41, Andrej Shadura <[email protected]> a
écrit :
… @Martiusweb <https://github.com/Martiusweb>, any updates on this? As
Python 3.8 is becoming the default in distros (e.g. Debian), these issues
become serious.
See e.g. #954554 <https://bugs.debian.org/954554>
cc #132 <#132>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABPWGG7ACITO32XJWZJPC3RPE2SZANCNFSM4IDOQIFQ>
.
--
Martin <http://www.martiusweb.net> Richard
www.martiusweb.net
|
Any progress on this? |
Could use this fix too, any updates? |
Addresses 126
Addresses 132
This change removes the usages of
@asyncio.coroutine
and replaces them with the recommendedasync def
functions instead. This is because as of Python3.8 which is now in Beta at the time of writing, using@asyncio.coroutine
results in a deprecation warning.This leaves two errors currently, both of which I am struggling to track down the source of, as they appear to have occurred when the file was loaded. One of which already existed from where I forked from.
if you have any ideas on what is causing these, I will be happy to address them in this PR if desired.
Thanks
N.K.