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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 2 comments
Closed

Comments

@numpy-gitbot
Copy link

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)')
@numpy-gitbot
Copy link
Author

@cournape wrote on 2008-08-13

Here is what I get at r5635

#!python
======================================================================
FAIL: Check formatting.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\numpy\core\tests\test_print.py", line 28, in test_complex_types
    assert_equal(str(t(x)), str(complex(x)))
  File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 180, in assert_equal
    assert desired == actual, msg
AssertionError: 
Items are not equal:
 ACTUAL: '(0+5.9287877500949585e-323j)'
 DESIRED: '(1+0j)'

======================================================================
FAIL: Check formatting.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\numpy\core\tests\test_print.py", line 16, in test_float_types
    assert_equal(str(t(x)), str(float(x)))
  File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 180, in assert_equal
    assert desired == actual, msg
AssertionError: 
Items are not equal:
 ACTUAL: '0.0'
 DESIRED: '1.0'

======================================================================
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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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 380, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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.3-py2.5.egg\nose\case.py", line 182, 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)')

----------------------------------------------------------------------
Ran 1639 tests in 10.609s

FAILED (SKIP=45, failures=14)
Running unit tests for numpy
NumPy version 1.2.0.dev5637
NumPy is installed in C:\Python25\lib\site-packages\numpy
Python version 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
nose version 0.10.3

@numpy-gitbot
Copy link
Author

@pv wrote on 2008-08-13

TestC99 tests were removed in r5644; the current code is simply platform-dependent in what comes to inf/nan/special-value handling.

The complex number string formatting is probably a different problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant