Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15855 closed defect (worksforme)

BUG: py25-scipy test suites fail

Reported by: pedro.dhb@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: scipy Cc:
Port:

Description

I compiled py25-scipy with gcc 4.3 and it doesn't pass the test suite.

The first time I installed scipy numpy passed all the test suites. After unistalling and reinstalling scipy the test suite error increased and numpy failed some tests.

I attached scipy and numpy tests' output

Leopard 10.5.4

Attachments (1)

errors.txt (21.7 KB) - added by pedro.dhb@… 16 years ago.

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by pedro.dhb@…

Attachment: errors.txt added

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

Owner: changed from macports-tickets@… to ram@…
Status: newassigned

comment:2 Changed 16 years ago by skymoo (Adam Mercer)

Milestone: Port Bugs

comment:3 Changed 16 years ago by skymoo (Adam Mercer)

Resolution: worksforme
Status: assignedclosed

I don't get these after uninstalling and reinstalling:

NumPy:

>>> import numpy
>>> numpy.test()
Numpy is installed in /opt/local/lib/python2.5/site-packages/numpy
Numpy version 1.1.0
Python version 2.5.2 (r252:60911, Jun 24 2008, 19:15:08) [GCC 4.0.1 (Apple Inc. build 5465)]
<snip>
Ran 1283 tests in 3.290s

OK
<unittest._TextTestResult run=1283 errors=0 failures=0>

SciPy:

>>> import scipy
>>> scipy.test()
<snip>
===============
FAIL: Solve: single precision complex
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py", line 32, in check_solve_complex_without_umfpack
    assert_array_almost_equal(a*x, b)
  File "/opt/local/lib/python2.5/site-packages/numpy/testing/utils.py", line 255, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/opt/local/lib/python2.5/site-packages/numpy/testing/utils.py", line 240, in assert_array_compare
    assert cond, msg
AssertionError: 
Arrays are not almost equal

(mismatch 20.0%)
 x: array([ 1.00000000+0.j,  1.99999809+0.j,  3.00000000+0.j,  4.00000048+0.j,
        5.00000000+0.j], dtype=complex64)
 y: array([1, 2, 3, 4, 5])

----------------------------------------------------------------------
Ran 1583 tests in 8.117s

FAILED (failures=1)
<unittest._TextTestResult run=1583 errors=0 failures=1>

Which is nothing to worry about.

comment:4 Changed 16 years ago by pedro.dhb@…

Resolution: worksforme
Status: closedreopened

scipy.test('1', '10')

You will surely get the same errors

comment:5 Changed 16 years ago by skymoo (Adam Mercer)

Are you getting hit by any of these errors in a production script?

comment:6 Changed 16 years ago by skymoo (Adam Mercer)

Resolution: worksforme
Status: reopenedclosed

closing as worksforme, if you are running into these errors in a production script reopen

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.