Revision: 7872
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7872&view=rev
Author: astraw
Date: 2009-10-11 19:11:16 +0000 (Sun, 11 Oct 2009)
Log Message:
-----------
testing: raise errors that are not real known failures on image comparison
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/testing/decorators.py
Modified: trunk/matplotlib/lib/matplotlib/testing/decorators.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/testing/decorators.py 2009-10-11
19:10:30 UTC (rev 7871)
+++ trunk/matplotlib/lib/matplotlib/testing/decorators.py 2009-10-11
19:11:16 UTC (rev 7872)
@@ -97,7 +97,8 @@
else:
fail_msg = 'No failure expected'
will_fail = not (is_comparable and have_baseline_image)
- @knownfailureif(will_fail, fail_msg )
+ @knownfailureif(will_fail, fail_msg,
+ known_exception_class=ImageComparisonFailure )
def decorated_compare_images():
# set the default format of savefig
matplotlib.rc('savefig', extension=extension)
@@ -109,6 +110,9 @@
finally:
os.chdir(old_dir)
for actual,expected in zip(actual_fnames,expected_fnames):
+ if not os.path.exists(expected):
+ raise ImageComparisonFailure(
+ 'image does not exist: %s'%expected)
# compare the images
tol=1e-3 # default tolerance
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins