Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Recent C99 changes (complex functions) break tests on windows (Trac #865) #1463

Closed
@numpy-gitbot

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/865 on 2008-07-29 by @cournape, assigned to unknown.

I have 12 failed tests related to recent test_umath on win32 (with mingw).

======================================================================
FAIL: test_umath.TestC99.test_cacos(<ufunc 'arccos'>, (1.0, -1.#IND), (-1.#IND, -1.#IND), 'invalid-optional')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#QNAN, -1.#IND)', '(-1.#IND, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_cacos(<ufunc 'arccos'>, (-1.#IND, 1.0), (-1.#IND, -1.#IND), 'invalid-optional')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#QNAN, -1.#IND)', '(-1.#IND, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_cacosh(<ufunc 'arccosh'>, (1.0, -1.#IND), (-1.#IND, -1.#IND), 'invalid-optional')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#QNAN, 1.#QNAN)', '(-1.#IND, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_cacosh(<ufunc 'arccosh'>, (-1.#IND, 1.0), (-1.#IND, -1.#IND), 'invalid-optional')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#QNAN, 1.#QNAN)', '(-1.#IND, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (0.0, 0.0), (-1.#INF, 3.1415926535897931), 'divide')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 399, in _check
    assert_raises(FloatingPointError, func, point)
  File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 347, in assert_raises
    return nose.tools.assert_raises(*args,**kwargs)
AssertionError: FloatingPointError not raised

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (-1.#INF, 1.#INF), (1.#INF, 2.3561944901923448), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#INF, -1.#IND)', '(1.#INF, 2.3561944901923448)')

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (1.#INF, 1.#INF), (1.#INF, 0.78539816339744828), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#INF, -1.#IND)', '(1.#INF, 0.78539816339744828)')

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (1.#INF, -1.#IND), (1.#INF, -1.#IND), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(-1.#IND, -1.#IND)', '(1.#INF, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (-1.#INF, -1.#IND), (1.#INF, -1.#IND), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(-1.#IND, -1.#IND)', '(1.#INF, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (-1.#IND, 1.#INF), (1.#INF, -1.#IND), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(-1.#IND, -1.#IND)', '(1.#INF, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_csqrt(<ufunc 'sqrt'>, (1.#INF, -1.#IND), (1.#INF, -1.#IND), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(-1.#IND, -1.#IND)', '(1.#INF, -1.#IND)')

======================================================================
FAIL: test_umath.TestC99.test_csqrt(<ufunc 'sqrt'>, (-1.#IND, 1.0), (-1.#IND, -1.#IND), 'invalid-optional')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\nose-0.10.1-py2.5.egg\nose\case.py", line 203, in runTest
    self.test(*self.arg)
  File "C:\Python25\lib\site-packages\numpy\core\tests\test_umath.py", line 393, in _check
    assert got == expected, (got, expected)
AssertionError: ('(1.#QNAN, 1.#QNAN)', '(-1.#IND, -1.#IND)')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions