<br><br><div class="gmail_quote">On Sat, May 5, 2012 at 2:56 PM, Paul Anton Letnes <span dir="ltr"><<a href="mailto:paul.anton.letnes@gmail.com" target="_blank">paul.anton.letnes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm getting a couple of errors when testing. System:<br>
Arch Linux (updated today)<br>
Python 3.2.3<br>
gcc 4.7.0<br>
(Anything else?)<br>
<br>
I think that this error:<br>
AssertionError: selectedrealkind(19): expected -1 but got 16<br>
is due to the fact that newer versions of gfortran actually supports<br>
precision this high (quad precision).<br>
<br>
Cheers<br>
Paul<br>
<br>
<br>
python -c 'import numpy;numpy.test("full")'<br>
Running unit tests for numpy<br>
NumPy version 1.6.1<br>
NumPy is installed in /usr/lib/python3.2/site-packages/numpy<br>
Python version 3.2.3 (default, Apr 23 2012, 23:35:30) [GCC 4.7.0<br>
20120414 (prerelease)]<br>
nose version 1.1.2<br>
....S.................................................................................................................................................................................................................................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................SSS...........................................................................................K............................................................................K.............................................................................................................K.................................................................................................K......................K..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................../usr/lib/python3.2/site-packages/numpy/lib/format.py:575:<br>

ResourceWarning: unclosed file <_io.BufferedReader<br>
name='/tmp/tmpmkxhkq'><br>
  mode=mode, offset=offset)<br>
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................/usr/lib/python3.2/subprocess.py:471:<br>

ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb'><br>
  return Popen(*popenargs, **kwargs).wait()<br>
/usr/lib/python3.2/subprocess.py:471: ResourceWarning: unclosed file<br>
<_io.FileIO name=7 mode='rb'><br>
  return Popen(*popenargs, **kwargs).wait()<br>
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...................................................................................................................<br>

======================================================================<br>
FAIL: test_kind.TestKind.test_all<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/usr/lib/python3.2/site-packages/nose/case.py", line 198, in runTest<br>
    self.test(*self.arg)<br>
  File "/usr/lib/python3.2/site-packages/numpy/f2py/tests/test_kind.py",<br>
line 30, in test_all<br>
    'selectedrealkind(%s): expected %r but got %r' %  (i,<br>
selected_real_kind(i), selectedrealkind(i)))<br>
  File "/usr/lib/python3.2/site-packages/numpy/testing/utils.py", line<br>
34, in assert_<br>
    raise AssertionError(msg)<br>
AssertionError: selectedrealkind(19): expected -1 but got 16<br></blockquote><div><br>This should have been fixed. Hmm...<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
======================================================================<br>
FAIL: test_pareto (test_random.TestRandomDist)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/usr/lib/python3.2/site-packages/numpy/random/tests/test_random.py",<br>
line 313, in test_pareto<br>
    np.testing.assert_array_almost_equal(actual, desired, decimal=15)<br>
  File "/usr/lib/python3.2/site-packages/numpy/testing/utils.py", line<br>
800, in assert_array_almost_equal<br>
    header=('Arrays are not almost equal to %d decimals' % decimal))<br>
  File "/usr/lib/python3.2/site-packages/numpy/testing/utils.py", line<br>
636, in assert_array_compare<br>
    raise AssertionError(msg)<br>
AssertionError:<br>
Arrays are not almost equal to 15 decimals<br>
<br>
(mismatch 16.66666666666667%)<br>
 x: array([[  2.46852460e+03,   1.41286881e+03],<br>
       [  5.28287797e+07,   6.57720981e+07],<br>
       [  1.40840323e+02,   1.98390255e+05]])<br>
 y: array([[  2.46852460e+03,   1.41286881e+03],<br>
       [  5.28287797e+07,   6.57720981e+07],<br>
       [  1.40840323e+02,   1.98390255e+05]])<br>
<br></blockquote><div><br>I can't think of anything that would affect this apart from the compiler version. Perhaps the precision needs to be backed off a bit.<br><br>Chuck <br></div><br></div>