From: <as...@us...> - 2009-09-07 20:03:36
|
Revision: 7688 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7688&view=rev Author: astraw Date: 2009-09-07 20:03:29 +0000 (Mon, 07 Sep 2009) Log Message: ----------- test conversion: move old-style test to new-style test Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_axes.py trunk/matplotlib/test/test_plots/TestPlot.py Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/single_point.png Removed Paths: ------------- trunk/matplotlib/test/test_plots/baseline/TestPlot/single_point.png Copied: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/single_point.png (from rev 7687, trunk/matplotlib/test/test_plots/baseline/TestPlot/single_point.png) =================================================================== (Binary files differ) Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:03:12 UTC (rev 7687) +++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:03:29 UTC (rev 7688) @@ -170,3 +170,14 @@ fig.autofmt_xdate() fig.savefig( 'fill_units' ) +@image_comparison(baseline_images=['single_point']) +def test_single_point(): + """Test single-point plots.""" + fig = pylab.figure() + pylab.subplot( 211 ) + pylab.plot( [0], [0], 'o' ) + + pylab.subplot( 212 ) + pylab.plot( [1], [1], 'o' ) + + fig.savefig( 'single_point' ) Modified: trunk/matplotlib/test/test_plots/TestPlot.py =================================================================== --- trunk/matplotlib/test/test_plots/TestPlot.py 2009-09-07 20:03:12 UTC (rev 7687) +++ trunk/matplotlib/test/test_plots/TestPlot.py 2009-09-07 20:03:29 UTC (rev 7688) @@ -41,21 +41,6 @@ pass #-------------------------------------------------------------------- - def test_single_point( self ): - """Test single-point plots.""" - fname = self.outFile( "single_point.png" ) - - fig = pylab.figure() - pylab.subplot( 211 ) - pylab.plot( [0], [0], 'o' ) - - pylab.subplot( 212 ) - pylab.plot( [1], [1], 'o' ) - - fig.savefig( fname ) - self.checkImage( fname ) - - #-------------------------------------------------------------------- def test_single_date( self ): """Test single-point date plots.""" Deleted: trunk/matplotlib/test/test_plots/baseline/TestPlot/single_point.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |