-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[#9219] Disable test_plugin.DeveloperSetupTests.test_freshPyReplacesStalePyc under PyPy2 #837
Conversation
…under PyPy2 [twisted#9219] This test relies on removing the initial stale.py plugin module to ensure .pyc file is being used during sanity check, this causes the import during twisted.plugin.getCache() to ERROR out under PyPy2. Disabling test under PyPy2 until a better way can be found to deal with.
|
Does this test pass on Pypy3? Is We don't currently have a Pypy3 buildbot to verify this (but we should probably add one). |
|
@rodrigc this test does indeed pass under PyPy3 5.8.0, and yes _PY3 does seem to be true under this environment. I ran the full Twisted test suite under this environment and was surprised how well it did, many of the FAILs and ERRORs seem to be for the same problem as well (eg. StringIO missing) |
|
Cool |
|
Just out of curiousity, does coverage work under pypy3? Something like: |
|
It does appear that coverage works under pypy3, the report summary last line is:
|
|
@dansut wow that's good news. Before the coverage command did not seem to work with pypy. |
|
That is good news @rodrigc - I'm now going to check coverage with the pypy2 build of 5.8.0 It probably would be a good idea if I'd given you the trial result summary for pypy3 that matched with that coverage report last line, here it is:
This doesn't seem like a catastrophic starting point to get this to be a supported platform - but I'm gonna focus on the pypy2 build first 😄 |
|
Hey @dansut , since you seem to be motivated with Pypy, do you have any cycles to help https://buildbot.twistedmatrix.com/builders/ubuntu16.04-pypy5/builds/91/steps/select/logs/stdio You will see that these tests are failing on Pypy 5.8.0: If you have the time/interest, could you take a look at these tests and see if |
|
@rogric - seen latest buildbot and my intention is to go through each of these in turn and assess. Not sure how much time I'll have over weekend, but Monday I'll be straight back into the attempting to get the PyPy build as clean as I can. |
The test_plugin.DeveloperSetupTests.test_freshPyReplacesStalePyc test relies on removing the initial stale.py plugin module to ensure .pyc file is being used during sanity check, this causes the import during twisted.plugin.getCache() to ERROR out under PyPy2.
This PR Disables the test under PyPy2 until a better way can be found to deal with this situation.