|
From: <as...@us...> - 2009-09-23 06:24:34
|
Revision: 7816
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7816&view=rev
Author: astraw
Date: 2009-09-23 06:24:27 +0000 (Wed, 23 Sep 2009)
Log Message:
-----------
testing: fix docstring. add comments.
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-09-22 14:21:24 UTC (rev 7815)
+++ trunk/matplotlib/lib/matplotlib/testing/decorators.py 2009-09-23 06:24:27 UTC (rev 7816)
@@ -39,8 +39,8 @@
def image_comparison(baseline_images=None):
"""
compare images generated by the test with those specified in
- *baseline_images*, which must correspond within tolerance *tol*,
- else an ImageComparisonFailure exception will be raised.
+ *baseline_images*, which must correspond else an
+ ImageComparisonFailure exception will be raised.
"""
@@ -51,6 +51,11 @@
result = func(*args,**kwargs)
extension = '.png' # TODO: test more backends
for fname in baseline_images:
+ # FIXME: place "actual", or current images, images in
+ # a more reasonable location than the current
+ # directory. Also, perhaps put them in sub-directory
+ # according to the name of the test module like the
+ # baseline images.
actual = fname + extension
# compute filename for baseline image
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|