|
From: <jo...@us...> - 2009-10-09 16:10:36
|
Revision: 7860
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7860&view=rev
Author: jouni
Date: 2009-10-09 16:10:28 +0000 (Fri, 09 Oct 2009)
Log Message:
-----------
Don't skip running tests if a baseline image is missing
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-09 15:31:59 UTC (rev 7859)
+++ trunk/matplotlib/lib/matplotlib/testing/decorators.py 2009-10-09 16:10:28 UTC (rev 7860)
@@ -54,11 +54,7 @@
# separate test case for each file format.
def compare_images_decorator(func):
baseline_dir, result_dir = _image_directories(func)
- # Only run the test if there is a baseline image in the
- # correct format for comparison.
- extensions = [ext for ext in ['png', 'pdf']
- if os.path.exists(os.path.join(
- baseline_dir, baseline_images[0] + '.' + ext))]
+ extensions = ['png', 'pdf']
def compare_images_generator():
for extension in extensions:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|