| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1) Run the test itself that generates figure(s) only once, then
savefig it to each output format. This appears to have an approx
2.75x speedup on run time.
2) Cleanup better after each test:
Close all figures
Reset rcParams to their defaults
Reset the unit registry to defaults
This requires the following changes to the tests themselves:
1) The tests no longer need to call 'savefig' -- just create figures
and the decorator will find them.
2) Tests that don't use the image_comparison decorator should use the
new cleanup decorator to make sure that cleanup happens.
…cape up multiple times.
…cape server and starting a new one to prevent memory leaks in Inkscape from becoming problematic.
…n test setup function to reset rcParams state.
|
This is moved over from here: @WeatherGod, @ivanov and @mdboom were participating over there. |
Sorry, something went wrong.
|
hmm, i'm getting some errors in python2.5: Failure: AttributeError ('function' object has no attribute 'im_class') ... ERROR matplotlib.tests.test_backend_svg.test_visibility.test ... ok matplotlib.tests.test_basic.test_simple ... ok matplotlib.tests.test_basic.test_simple_knownfail ... KNOWNFAIL: Test known to fail matplotlib.tests.test_basic.test_override_builtins ... ok matplotlib.tests.test_cbook.Test_delete_masked_points.test_bad_first_arg ... ok matplotlib.tests.test_cbook.Test_delete_masked_points.test_datetime ... ok matplotlib.tests.test_cbook.Test_delete_masked_points.test_rgba ... ok matplotlib.tests.test_cbook.Test_delete_masked_points.test_string_seq ... ok matplotlib.tests.test_cbook.test_is_string_like ... ok matplotlib.tests.test_cbook.test_restrict_dict ... ok matplotlib.tests.test_mlab.test_colinear_pca ... ok matplotlib.tests.test_mlab.test_recarray_csv_roundtrip ... FAIL matplotlib.tests.test_mlab.test_rec2csv_bad_shape ... ok matplotlib.tests.test_mlab.test_prctile ... ok matplotlib.tests.test_transforms.test_Affine2D_from_values ... ok Failure: AttributeError ('function' object has no attribute 'im_class') ... ERROR matplotlib.tests.test_axes.test_arc_ellipse.test ... ok matplotlib.tests.test_axes.test_arc_ellipse.test ... ok matplotlib.tests.test_axes.test_arc_ellipse.test ... and then stalls and never finishes. Is this a nose issue? (I'm on nose 1.0.0) |
Sorry, something went wrong.
|
Ah. I'm having issues with nose 1.0 as well. Investigating... |
Sorry, something went wrong.
|
This latest commit seems to fix the nose-1.0.0 issue on Python 2.7. @ivanov -- do you mind kicking the tires with Python 2.5? Python 3.x will have its own set of issues, I suspect, but I'll defer that to when I merge this into the py3 branch. |
Sorry, something went wrong.
|
@mdboom - I'm getting a bunch of ERROR: Failure: AttributeError ('staticmethod' object has no attribute '__func__') messages, but once I got around that with ivanov@be6af2f - it still stalls on the third matplotlib.tests.test_axes.test_arc_ellipse.test ... |
Sorry, something went wrong.
|
It's probably hitting some sort of deadlock with the Inkscape server. I've got 0.48.1. But it also could be a difference in the behavior of the "subprocess" module in Python 2.5 vs. 2.7, or some sort of platform difference. If you revert lib/matplotlib/testing/compare.py to what is in master, does the stalling go away? If so, maybe we should defer the Inkscape server part of this pull request until we better understand how to do it in a robust way. |
Sorry, something went wrong.
|
mdboom, on 2011-04-28 05:37, wrote:
That did the trick, Mike! I still have a couple of failures on I still needed to use the get(1) business, instead of |
Sorry, something went wrong.
…mage_comparison_decorator Fix for Python 2.5 compatibility.
…er than running it as a server, which mysteriously causes a deadlock on some systems.
|
looks good now, Mike, thanks! |
Sorry, something went wrong.
Faster image comparison decorator
| Back | FazBrowse Home | New Git URL |
This is a riff on the ideas in the comments on the pull requests by Paul @ivanov to reduce memory consumption when running the regression tests. See:
#96
and
#56
This is different from the other two in that it: