-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
use base64.encodestring on python2.7 #5570
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
Conversation
This break another test in test simplification because it checks for the presence of encodebytes. I would prefer that the code does not monkeypatch the stdlib modules. I would suggest something like try:
from base64 import decodebytes
except:
from base64 import decodestring as decodebytes and then change L935 to
|
The pep8 test fails because you need at least 2 spaces before an inline comment
|
e82971b
to
c7e98aa
Compare
@jenshnielsen Thank you for you comment and sorry for my poor testing. I've fixed my commit, but some tests are failing by other reasons. Do you know why that tests fail? |
Great. The new test failures are just random flukes not related to your changes. I have restarted these tests |
Hmm, coveralls isn't happy for some reason. Shall we ignore this for now? I think we can improve test coverage of the animation module by using the new NullWriter as a smoke tester later. |
@WeatherGod Yes ignore that. This code is uncovered. Hence why we did not find it earlier and now it's one line longer so the coverage goes down 😢 |
use base64.encodestring on python2.7
use base64.encodestring on python2.7
backported to v1.5.x as 2baedb0 |
Hmm, not exactly sure, but I am wondering if 1.5.x is now broken for py2.6? I don't think this PR broke it, but for some reason, one of the usetex unittests is breaking for py2.6... |
This PR fixes #5508.
I don't know the standard way to solve version compatibility issues in this project. So I chose explicit way.
I've tested a code below with IPython notebook on Python2.7.5 and Python3.4.2.