From: <jd...@us...> - 2008-12-10 14:35:53
|
Revision: 6545 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6545&view=rev Author: jdh2358 Date: 2008-12-10 14:35:49 +0000 (Wed, 10 Dec 2008) Log Message: ----------- added nose tests Modified Paths: -------------- trunk/matplotlib/examples/tests/backend_driver.py Added Paths: ----------- trunk/matplotlib/unit/nose_tests.py Modified: trunk/matplotlib/examples/tests/backend_driver.py =================================================================== --- trunk/matplotlib/examples/tests/backend_driver.py 2008-12-10 12:56:09 UTC (rev 6544) +++ trunk/matplotlib/examples/tests/backend_driver.py 2008-12-10 14:35:49 UTC (rev 6545) @@ -167,7 +167,7 @@ 'scatter_masked.py', 'scatter_profile.py', 'scatter_star_poly.py', - 'set_and_get.py', + #'set_and_get.py', 'shared_axis_across_figures.py', 'shared_axis_demo.py', 'simple_plot.py', Added: trunk/matplotlib/unit/nose_tests.py =================================================================== --- trunk/matplotlib/unit/nose_tests.py (rev 0) +++ trunk/matplotlib/unit/nose_tests.py 2008-12-10 14:35:49 UTC (rev 6545) @@ -0,0 +1,17 @@ +import nose, nose.tools as nt +import numpy.testing as nptest + +import matplotlib +matplotlib.use('Agg') +import numpy as np +import matplotlib.pyplot as plt +import matplotlib.axes as maxes + +def test_create_subplot_object(): + fig = plt.figure() + ax = maxes.Subplot(fig, 1, 1, 1) + fig.add_subplot(ax) + +if __name__=='__main__': + nose.runmodule(argv=['-s','--with-doctest'], exit=False) + pass This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |