-
-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Description
Running unit tests for numpy
NumPy version 1.9.0.dev-02008f7
NumPy is installed in X:\Python27-x64\lib\site-packages\numpy
Python version 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
nose version 1.3.3
<snip>
======================================================================
ERROR: test_deprecations.TestIdentityComparisonDepreactions.test_identity_equality_mismatch
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27-x64\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "X:\Python27-x64\lib\site-packages\numpy\core\tests\test_deprecations.py", line 457, in test_identity_equality_mismatch
np.less(a, a)
RuntimeWarning: invalid value encountered in less
======================================================================
ERROR: test_searchsorted_with_sorter (test_multiarray.TestMethods)
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27-x64\lib\site-packages\numpy\core\tests\test_multiarray.py", line 1221, in test_searchsorted_with_sorter
b = a.searchsorted(a, 'l', s)
ValueError: Sorter index out of range.
======================================================================
FAIL: test_count_func (test_core.TestMaskedArrayArithmetic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27-x64\lib\site-packages\numpy\ma\tests\test_core.py", line 816, in test_count_func
self.assertTrue(isinstance(count(ott), int))
AssertionError: False is not true
======================================================================
FAIL: test_xtestCount (test_old_ma.TestMa)
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27-x64\lib\site-packages\numpy\ma\tests\test_old_ma.py", line 159, in test_xtestCount
self.assertTrue(isinstance(count(ott), int))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 5137 tests in 22.016s
FAILED (KNOWNFAIL=10, SKIP=9, errors=2, failures=2)
The first two tests also fail on win-amd64-py3.4.
The MaskedArray test failures should be easy to fix by testing for np.int64 or casting the result in the count function to int.
Metadata
Metadata
Assignees
Labels
No labels