Michael Droettboom said
> Are you running the tests from the source directory? That often results in failures that look like this.
Yes, I did that. Some Googling found the correct way to do it:
python3.2
>>> 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 output.
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
107, in test_afm_kerning
assert afm.string_width_height('VAVAVAVAVAVA') == (7174.0, 718)
AssertionError
----------------------------------------------------------------------
Ran 1091 tests in 310.441s
FAILED (KNOWNFAIL=275, failures=1)
False
Michael Droettboom said
> Are you running the tests from the source directory? That often
results in failures that look like this.
Yes, I did that. Some Googling found the correct way to do it:
python3.2
>>> 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 output.
The K's are probably because some requirement of the test framework (ghostscript or inkscape) is not being found on your machine.
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
107, in test_afm_kerning
assert afm.string_width_height('VAVAVAVAVAVA') == (7174.0, 718)
AssertionError
----------------------------------------------------------------------
Ran 1091 tests in 310.441s
FAILED (KNOWNFAIL=275, failures=1)
False
This is a new test as of yesterday. Can you add a print to figure out what afm.string_width_height() returns? I'm curious as to what way this is failing on your machine.
Mike
···
On 05/15/2012 10:15 AM, Edward C. Jones wrote: