[pypy-issue] [issue1734] numpy: test_imag_real gives incorrect outputs
lesshaste
tracker at bugs.pypy.org
Sat Apr 12 10:46:45 CEST 2014
New submission from lesshaste <drraph at gmail.com>:
For example...
======================================================================
FAIL: Tests minimum and maximum.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/tests/test_core.py",
line 854, in test_minmax_func
assert_equal(minimum([1, 2, 3], [4, 0, 9]), [1, 0, 3])
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/testutils.py",
line 123, in assert_equal
return assert_array_equal(actual, desired, err_msg)
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/testutils.py",
line 196, in assert_array_equal
header='Arrays are not equal')
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/testutils.py",
line 189, in assert_array_compare
verbose=verbose, header=header)
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/testing/utils.py",
line 644, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 66.6666666667%)
x: array([ True, True, True], dtype=bool)
y: array([1, 0, 3])
======================================================================
FAIL: Check that the mask is not back-propagated when using numpy functions
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/tests/test_core.py",
line 1196, in test_numpyarithmetics
assert_equal(test.mask, control.mask)
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/testutils.py",
line 123, in assert_equal
return assert_array_equal(actual, desired, err_msg)
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/testutils.py",
line 196, in assert_array_equal
header='Arrays are not equal')
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/ma/testutils.py",
line 189, in assert_array_compare
verbose=verbose, header=header)
File
"/home/raph/Downloads/pypy-2.3-alpha-20140405-linux_x86_64-portable/bin/my-env/site-packages/numpy/testing/utils.py",
line 644, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 40.0%)
x: array([False, False, False, False, True], dtype=bool)
y: array([ True, True, False, False, True], dtype=bool)
----------
messages: 6702
nosy: lesshaste, pypy-issue
priority: bug
status: unread
title: numpy: test_imag_real gives incorrect outputs
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1734>
________________________________________
More information about the pypy-issue
mailing list