On 02/14/2011 08:32 PM, Benjamin Root wrote:
On Mon, Feb 14, 2011 at 6:56 PM, Gökhan Sever <gokhanse...@gmail.com <mailto:gokhanse...@gmail.com>> 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'

This test was added by John Hunter fairly recently. I'll go ahead and commit the test results from my machine -- I assume they are correct since there's nothing special about the test.


    ======================================================================
    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)

Both the png and svg versions of this test have been updated more recently than the pdf, so I suspect it's ok to update it. I'll go ahead and do this.

Mike


    ----------------------------------------------------------------------
    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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

------------------------------------------------------------------------------
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to