Revision: 7873
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7873&view=rev
Author:   jouni
Date:     2009-10-12 05:41:42 +0000 (Mon, 12 Oct 2009)

Log Message:
-----------
Raise ImageComparisonFailure instead of NotImplementedError if unable to 
convert images

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/testing/compare.py

Modified: trunk/matplotlib/lib/matplotlib/testing/compare.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/testing/compare.py  2009-10-11 19:11:16 UTC 
(rev 7872)
+++ trunk/matplotlib/lib/matplotlib/testing/compare.py  2009-10-12 05:41:42 UTC 
(rev 7873)
@@ -4,6 +4,7 @@
 #=======================================================================
 
 import matplotlib
+from matplotlib.testing.noseclasses import ImageComparisonFailure
 import math
 import operator
 import os
@@ -105,7 +106,7 @@
    '''
    base, extension = filename.rsplit('.', 1)
    if extension not in converter:
-      raise NotImplementedError, "Don't know how to convert %s files to png" % 
extension
+      raise ImageComparisonFailure, "Don't know how to convert %s files to 
png" % extension
    newname = base + '_' + extension + '.png'
    cmd = converter[extension](filename, newname)
    pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)


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

Reply via email to