Skip to content

numpy-1.9.0.dev-02008f7.win-amd64-py2.7 test failures #4698

@cgohlke

Description

@cgohlke
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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions