[NumPy-Tickets] [NumPy] #1574: 1.5.0b1 umath complex failures on Windows
NumPy Trac
numpy-tickets@scipy....
Sun Aug 8 10:28:12 CDT 2010
#1574: 1.5.0b1 umath complex failures on Windows
------------------------+---------------------------------------------------
Reporter: rgommers | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.5.0
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Reported on Windows with Python 2.7 by two people with the 1.5.0b1 binary.
{{{
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.test()
Running unit tests for numpy
NumPy version 1.5.0b1
NumPy is installed in C:\Python27\lib\site-packages\numpy
Python version 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit
(Intel)]
nose version 0.11.0
..........................................................................................
....................E.....................................................................
..........................................................................................
..........................................................................................
..........................................................................................
.....................K....................................................................
..........................................................................................
..................................................................K.......................
...................................K..K.............Warning: invalid value
encountered in
absolute
.Warning: invalid value encountered in absolute
................K........F....FFFF.....K.F.........FF..FFF.....F..........................
......................................................S...................................
..........................................................................................
..........................................................................................
..........................................................................................
..........................................................................................
.......................................K.........K........................................
..........................................................................................
..........................................................................................
..........................................................................................
..........................................................................................
..........................................S...............................................
..........................................................................................
..........................................................................................
..........................................................................................
..........................................................................................
..........................................................................................
..........................................................................................
................................................................
======================================================================
ERROR: test_filename (test_memmap.TestMemmap)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\numpy\core\tests\test_memmap.py",
line 60, in test_f
ilename
os.unlink(tmpname)
WindowsError: [Error 32] The process cannot access the file because it is
being used by an
other process: 'c:\\users\\alanis~1\\appdata\\local\\temp\\mmapoo5c2b'
======================================================================
FAIL: test_umath_complex.TestCexp.test_special_values(<ufunc 'exp'>, inf,
0, inf, 0)
test_umath_complex.TestCexp.test_special_values(<ufunc 'exp'>, inf, 0,
inf, 0)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 539, i
n check_complex_value
assert_equal(f(z1), z2)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
in assert_array_e
qual
verbose=verbose, header='Arrays are not equal')
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
in assert_array_c
ompare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ inf nanj])
y: array((inf+0j))
>> raise AssertionError('\nArrays are not equal\n\n(x and y nan location
mismatch [ True]
, False mismatch)\n x: array([ inf nanj])\n y: array((inf+0j))')
======================================================================
FAIL: test_umath_complex.TestCexp.test_special_values(None,)
test_umath_complex.TestCexp.test_special_values(None,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 60, in
_check_ninf_inf
raise AssertionError(msgform %(z.real, z.imag))
AssertionError: cexp(-inf, inf) is (nan, nan), expected (+-0, +-0)
>> raise AssertionError('cexp(-inf, inf) is (%f, %f), expected (+-0,
+-0)' %((nan+nan*j).
real, (nan+nan*j).imag))
======================================================================
FAIL: test_umath_complex.TestCexp.test_special_values(None,)
test_umath_complex.TestCexp.test_special_values(None,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 73, in
_check_inf_inf
raise AssertionError(msgform % (z.real, z.imag))
AssertionError: cexp(inf, inf) is (nan, nan), expected (+-inf, nan)
>> raise AssertionError('cexp(inf, inf) is (%f, %f), expected (+-inf,
nan)' % ((nan+nan*j
).real, (nan+nan*j).imag))
======================================================================
FAIL: test_umath_complex.TestCexp.test_special_values(None,)
test_umath_complex.TestCexp.test_special_values(None,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 86, in
_check_ninf_nan
raise AssertionError(msgform % (z.real, z.imag))
AssertionError: cexp(-inf, nan) is (nan, nan), expected (+-0, +-0)
>> raise AssertionError('cexp(-inf, nan) is (%f, %f), expected (+-0,
+-0)' % ((nan+nan*j)
.real, (nan+nan*j).imag))
======================================================================
FAIL: test_umath_complex.TestCexp.test_special_values(None,)
test_umath_complex.TestCexp.test_special_values(None,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 99, in
_check_inf_nan
raise AssertionError(msgform % (z.real, z.imag))
AssertionError: cexp(-inf, nan) is (nan, nan), expected (+-inf, nan)
>> raise AssertionError('cexp(-inf, nan) is (%f, %f), expected (+-inf,
nan)' % ((nan+nan*
j).real, (nan+nan*j).imag))
======================================================================
FAIL: test_special_values (test_umath_complex.TestClog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 144, i
n test_special_values
self.assertRaises(FloatingPointError, np.log, x)
AssertionError: FloatingPointError not raised
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, 1,
inf, inf, inf)
test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, 1, inf,
inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 539, i
n check_complex_value
assert_equal(f(z1), z2)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
in assert_array_e
qual
verbose=verbose, header='Arrays are not equal')
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
in assert_array_c
ompare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ inf nanj])
y: array((inf+infj))
>> raise AssertionError('\nArrays are not equal\n\n(x and y nan location
mismatch [ True]
, False mismatch)\n x: array([ inf nanj])\n y: array((inf+infj))')
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -1,
inf, inf, inf)
test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -1, inf,
inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 539, i
n check_complex_value
assert_equal(f(z1), z2)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
in assert_array_e
qual
verbose=verbose, header='Arrays are not equal')
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
in assert_array_c
ompare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ nan infj])
y: array((inf+infj))
>> raise AssertionError('\nArrays are not equal\n\n(x and y nan location
mismatch [ True]
, False mismatch)\n x: array([ nan infj])\n y: array((inf+infj))')
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
inf, inf, inf, inf)
test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, inf, inf,
inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 539, i
n check_complex_value
assert_equal(f(z1), z2)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
in assert_array_e
qual
verbose=verbose, header='Arrays are not equal')
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
in assert_array_c
ompare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ inf nanj])
y: array((inf+infj))
>> raise AssertionError('\nArrays are not equal\n\n(x and y nan location
mismatch [ True]
, False mismatch)\n x: array([ inf nanj])\n y: array((inf+infj))')
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
-inf, inf, inf, inf
)
test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -inf,
inf, inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 539, i
n check_complex_value
assert_equal(f(z1), z2)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
in assert_array_e
qual
verbose=verbose, header='Arrays are not equal')
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
in assert_array_c
ompare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ nan infj])
y: array((inf+infj))
>> raise AssertionError('\nArrays are not equal\n\n(x and y nan location
mismatch [ True]
, False mismatch)\n x: array([ nan infj])\n y: array((inf+infj))')
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
nan, inf, inf, inf)
test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, nan, inf,
inf, inf)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 539, i
n check_complex_value
assert_equal(f(z1), z2)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
in assert_array_e
qual
verbose=verbose, header='Arrays are not equal')
File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
in assert_array_c
ompare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ nan nanj])
y: array((inf+infj))
>> raise AssertionError('\nArrays are not equal\n\n(x and y nan location
mismatch [ True]
, False mismatch)\n x: array([ nan nanj])\n y: array((inf+infj))')
======================================================================
FAIL: test_umath_complex.TestCsqrt.test_special_values(None,)
test_umath_complex.TestCsqrt.test_special_values(None,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-
packages\numpy\core\tests\test_umath_complex.py", line 340, i
n _check_ninf_nan
raise AssertionError(msgform % (z.real, z.imag))
AssertionError: csqrt(-inf, nan) is (nan, nan), expected (nan, +-inf)
>> raise AssertionError('csqrt(-inf, nan) is (%f, %f), expected (nan,
+-inf)' % ((nan+nan
*j).real, (nan+nan*j).imag))
----------------------------------------------------------------------
Ran 2456 tests in 19.070s
FAILED (KNOWNFAIL=8, SKIP=2, errors=1, failures=12)
<nose.result.TextTestResult run=2456 errors=1 failures=12>
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1574>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list