[matplotlib-devel] Two failures on mpl-rev8969 test suite

2011-02-14 Thread Gökhan Sever
python
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.test()
Warning: divide by zero encountered in log
Warning: divide by zero encountered in log
Warning: divide by zero encountered in log
/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/axes.py:2389:
UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=730139.0, right=730139.0
  + 'left=%s, right=%s') % (left, right))
==
ERROR: Failure: IOError ([Errno 2] No such file or directory:
'/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/canonical.png')
--
Traceback (most recent call last):
  File
"/usr/lib/python2.7/site-packages/nose-1.0.0-py2.7.egg/nose/loader.py", line
231, in generate
for test in g():
  File
"/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
line 91, in compare_images_generator
shutil.copyfile(src,dst)
  File "/usr/lib64/python2.7/shutil.py", line 81, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory:
'/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/canonical.png'

==
ERROR: make the basic nearest, bilinear and bicubic interps
--
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose-1.0.0-py2.7.egg/nose/case.py",
line 187, in runTest
self.test(*self.arg)
  File
"/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
line 32, in failer
result = f(*args, **kwargs)
  File
"/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
line 126, in decorated_compare_images
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close:
/home/gsever/Desktop/result_images/test_image/image_interps_pdf.png vs.
/home/gsever/Desktop/result_images/test_image/expected-image_interps_pdf.png
(RMS 281.963)

--
Ran 152 tests in 71.340s

FAILED (KNOWNFAIL=46, errors=2)
False


-- 
Gökhan
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Two failures on mpl-rev8969 test suite

2011-02-14 Thread Benjamin Root
On Mon, Feb 14, 2011 at 6:56 PM, Gökhan Sever  wrote:

> python
> Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
> [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib
> >>> matplotlib.test()
> Warning: divide by zero encountered in log
> Warning: divide by zero encountered in log
> Warning: divide by zero encountered in log
> /home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/axes.py:2389:
> UserWarning: Attempting to set identical left==right results
> in singular transformations; automatically expanding.
> left=730139.0, right=730139.0
>   + 'left=%s, right=%s') % (left, right))
> ==
> ERROR: Failure: IOError ([Errno 2] No such file or directory:
> '/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/canonical.png')
> --
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.7/site-packages/nose-1.0.0-py2.7.egg/nose/loader.py", line
> 231, in generate
> for test in g():
>   File
> "/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
> line 91, in compare_images_generator
> shutil.copyfile(src,dst)
>   File "/usr/lib64/python2.7/shutil.py", line 81, in copyfile
> with open(src, 'rb') as fsrc:
> IOError: [Errno 2] No such file or directory:
> '/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/canonical.png'
>
> ==
> ERROR: make the basic nearest, bilinear and bicubic interps
> --
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.7/site-packages/nose-1.0.0-py2.7.egg/nose/case.py", line
> 187, in runTest
> self.test(*self.arg)
>   File
> "/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
> line 32, in failer
> result = f(*args, **kwargs)
>   File
> "/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
> line 126, in decorated_compare_images
> '(RMS %(rms).3f)'%err)
> ImageComparisonFailure: images not close:
> /home/gsever/Desktop/result_images/test_image/image_interps_pdf.png vs.
> /home/gsever/Desktop/result_images/test_image/expected-image_interps_pdf.png
> (RMS 281.963)
>
> --
> Ran 152 tests in 71.340s
>
> FAILED (KNOWNFAIL=46, errors=2)
> False
>
>
> --
>  Gökhan
>
>
I have reported that first error a few months ago, and nobody has commented
on it.  I hope somebody knows what image that is supposed to be for.

The second error has popped up several times before, and we don't seem to
address it properly.  The difference between the expected and the resulting
images has a definite structure to it, suggesting that something changed.
Either there is something wrong with the original image, or there is
something wrong with the current image.  If we figure that the current image
is correct, and that there was something wrong with the previous image, then
we should update the image in the test suite.

Ben Root
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel