Revision: 8130 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8130&view=rev Author: astraw Date: 2010-02-15 02:02:32 +0000 (Mon, 15 Feb 2010)
Log Message: ----------- testing bugfix: always copy baseline image Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/testing/decorators.py Modified: trunk/matplotlib/lib/matplotlib/testing/decorators.py =================================================================== --- trunk/matplotlib/lib/matplotlib/testing/decorators.py 2010-02-15 00:19:05 UTC (rev 8129) +++ trunk/matplotlib/lib/matplotlib/testing/decorators.py 2010-02-15 02:02:32 UTC (rev 8130) @@ -88,8 +88,7 @@ orig_expected_fnames = [os.path.join(baseline_dir,fname) + '.' + extension for fname in baseline_images] expected_fnames = [os.path.join(result_dir,'expected-'+fname) + '.' + extension for fname in baseline_images] for src,dst in zip( orig_expected_fnames, expected_fnames ): - if os.path.exists(src) and not os.path.exists(dst): - shutil.copyfile(src,dst) + shutil.copyfile(src,dst) actual_fnames = [os.path.join(result_dir, fname) + '.' + extension for fname in baseline_images] have_baseline_images = [os.path.exists(expected) for expected in expected_fnames] have_baseline_image = np.all(have_baseline_images) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins