-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
savefig() with StringIO.StringIO() object failing for PS backend on Python 2.7.5 #2498
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
Thanks @megies. Would you believe that this is the first PostScript test...? I'm astounded! Thanks for adding the test, I think a bit of TDD is always welcome in mpl 😉 |
Well, it's understandable. Sometimes it's just simply higher priority to get something done. And writing (useful) tests can take so much more time than the actual implementing things.. |
Ok, thanks @mdboom. That's one point where it gets tricky with git, when opening PRs from a fork and main repo developers want to/have to jump in. I'll add you as collaborator, who knows, maybe it comes in handy at some point (can't hurt anyway). |
Odd, I have had a PR opened against my fork (tacaswell#1) |
Does anyone see megies listed when they try to create a PR? It wasn't listed in the dropdown... maybe we have too many forks? |
If I go to https://github.com/megies/matplotlib I can push the PR button and get a comparison, but I don't see megies from the compare and review button on my fork. |
I agree with @megies, this smells like a github bug. I set support a note. |
Got this back from support@github.com
|
savefig(..., format="ps")
is raising when passing on aStringIO.StringIO
object.This PR adds a minimal test case to demonstrate the issue. The issue was caused by the change in f4adec7b#diff-b465967f537465fec4960b152fa49cffL1110 (Py3 compatibility concerned, only present in
master
).Here is the exception (I have checked,
raw_fh
is of typeStringIO.StringIO
):A simple fix would be to revert those 4 lines, I guess, but I assume this might get handled differently, so I am not adding a fix for now.