I think having only the one failure (and one from a test that is quite 
new) is pretty good.

I'm  not sure why that test is failing -- is it possible it's testing 
with an earlier checkout using tests from a newer checkout.  This would 
happen, for example, if running the tests from the matplotlib source 
directory.

Mike

On 05/15/2012 12:08 PM, Edward C. Jones wrote:
> I use up-to-date Debian testing (wheezy) with the amd64 architecture
> and Debian's python3.2.  I install matplotlib from the tarball
>       matplotlib-matplotlib-v1.1.0-684-ge87374e.tar.gz
> Before the current install, I had also on my system Debian's
> python-matplotlib and python-matplotlib-data packages.  They contain
> some of the same
> files as the tarball (/etc/matplotlibrc).  I have completely removed the two
> Debian packages. My Debian system includes the packages python3-tk, tck8.5,
> tcl8.5-dev, tk8.5, and tk-dev.
>
> I did a new matplotlib install, starting by unpacking the tarball.
>
> In /usr/local/lib/python3.2/dist-packages/matplotlib/tests/test_text.py
> in test_afm_kerning, I added before the assert:
>       xxx = afm.string_width_height('VAVAVAVAVAVA')
>       print(xxx)
>
> The results are:
>
>   >  python3.2
> Python 3.2.3rc2 (default, Mar 21 2012, 05:47:04)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>   >>>  import matplotlib
>   >>>  matplotlib.test()
> ..K........./usr/lib/python3/dist-packages/nose/tools.py:82:
> ResourceWarning: unclosed file<_io.BufferedRandom name=3>
>     pass
> ...../usr/lib/python3.2/subprocess.py:650: ResourceWarning: unclosed file
> <_io.FileIO name=6 mode='rb'>
>     _cleanup()
> /usr/lib/python3.2/subprocess.py:650: ResourceWarning: unclosed file
> <_io.FileIO name=8 mode='rb'>
>     _cleanup()
>
> Many "."s and "K"s are printed.
>
> ======================================================================
> FAIL: matplotlib.tests.test_text.test_afm_kerning
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>     File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
>       self.test(*self.arg)
>     File
> "/usr/local/lib/python3.2/dist-packages/matplotlib/tests/test_text.py", line
> 109, in test_afm_kerning
>       assert afm.string_width_height('VAVAVAVAVAVA') == (7174.0, 718)
> AssertionError: AssertionError:
> -------------------->>  begin captured stdout<<  ---------------------
> (8004.0, 718)
>
> --------------------->>  end captured stdout<<  ----------------------
>
> ----------------------------------------------------------------------
> Ran 1091 tests in 312.866s
>
> FAILED (KNOWNFAIL=275, failures=1)
> /usr/local/lib/python3.2/dist-packages/matplotlib/__init__.py:937:
> /UserWarning:  This call to matplotlib.use() has no effect
> because the the backend has already been chosen;
> matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
> or matplotlib.backends is imported for the first time.
>
>     if warn: warnings.warn(_use_error_msg)
> False
>   >>>
> =======
> Here is one of matplotlib's simple sample programs.  It works.
>
> #! /usr/bin/env python3.2
>
> from pylab import *
>
> t = arange(0.0, 2.0, 0.01)
> s = sin(2*pi*t)
> plot(t, s, linewidth=1.0)
>
> xlabel('time (s)')
> ylabel('voltage (mV)')
> title('About as simple as it gets, folks')
> grid(True)
> show()
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to