Fix for unpickling polar plot issue #4068 - #4264
Conversation
|
@jenshnielsen Thanks for the heads up! Would it be possible to get the tests restarted? |
|
Here's what we've noticed. The problem arises because It seems like other children of |
|
Can you add a test? https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_pickle.py has some tests already (and while you are in there can you add an |
There was a problem hiding this comment.
Nit-pick: We leave 2 newlines between top level module objects. (I think the PEP8 tests will probably catch this)
|
I'm OK with the change. We can't be certain that this wont break other classes, which may have attributes which aren't picklable, but we can deal with that as the occur (should be a simple fix when it crops up). 👍 |
|
Whitespace issue fixed, @cleanup decorator added to tests, and a minimum test created. There was a funny error in one of the Travis test suites, does it simply need a restart? |
|
Yes, I restarted that test. Looks like apt timed out or some-such. |
|
Thank you! |
BUG : Fix for unpickling polar plot closes #4068
BUG : Fix for unpickling polar plot closes #4068

This implements a fix for the bug documented in issue #4068
PolarAffineoflib/matplotlib/projections/polar.pyreturned an empty state when being pickled because of an unimplemented__getstate__function. Removing this function resolved the reported exception and restored the expected behaviour.