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_new_no_args fails on PyPy2.7 #671
Comments
Why do you think it is not a PyPy bug? In any case, PyPy is not officially supported by this backport. So unless you are willing to provide a reasonable fix/workaround, I am going to close this. |
I don't know, I was hoping you'd be able to tell me. 3.6.4 worked fine. |
Here is the relevant difference between CPython and PyPy. In CPython:
In PyPy:
This means that in PyPy, Moreover, in both CPython and PyPy, We can produce similar behavior in CPython like this:
It looks like So the central question is: Why doesn't |
Related: #560, python/cpython#6758 @ilevkivskyi What was the reasoning behind adding the |
Hm, I found the answer to my question here:
I'll ponder this a bit to see if there's a different solution that would work for both A and B. |
Could you hint me a bit on how to handle this downstream? Is this a regression in the new version, or merely a thing that wasn't tested before? Is this something critical to functionality, or can I just ignore the test failure on PyPy for the time being? |
It's not a regression in typing.py. I don't know what changed (the test or the typing.py module) but it looks like it's failing due to the absence of an expected exception, which doesn't sound like the end of the world. Maybe you can try deleting these two lines from the failing test:
If it then passes, I wouldn't worry (and we might accept a PR that skips those two lines if PyPy is detected). For more details just carefully read this issue from the top, it's all there. |
The typing backport has been removed from this repository, making this issue obsolete. |
Same result with
tox
, after copyingtestenv:py27
totestenv:pypy
.The text was updated successfully, but these errors were encountered: