mdboom/matplotlib — pull request #5 by jenshnielsen (2011-11-03 20:46:02+00:00)
Title: Fix tests for python3.

I tested the python3 branch on both python3 and 2.
I see around 170 errors when running the test suite in python3
They are all of ```TypeError: __bool__ should return bool, returned int```

This is fixed by changing ```__nozero__``` to return bool. 2to3 converts this to ```__bool__``` that must return a bool not an integer. I don't know if this has any negative side effects on python2 __nonzero__ but
it does not change the number of tests passing on python2.

In addition I see two new failures on both python3 and 2 using this branch. 'Tight_layout5' and
'interp_nearest_vs_none' both fail in the svg version because the none interpolation images are
updown inverted. This does not seem to happen on master. (I also see a failure on master using tight_layout5 but the difference is smaller and the image is not inverted)