Bug 1687873

Summary: numpy.test() fails
Product: Red Hat Enterprise Linux 8 Reporter: Jakub Heger <jheger>
Component: numpyAssignee: Nikola Forró <nforro>
Status: CLOSED ERRATA QA Contact: Anna Khaitovich <akhaitov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: akhaitov, jkejda
Target Milestone: rcKeywords: Patch
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: numpy-1.14.3-7.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:42:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1688709    
Attachments:
Description Flags
Fix broken float128 on all arches except x86_64 none

Description Jakub Heger 2019-03-12 14:16:00 UTC
Description of problem:
numpy.test() fails on all architectures apart from x86_64

Version-Release number of selected component (if applicable):
python2-numpy-1.14.2-9.module+el8+2540+b19c9b35.ppc64le
python2-numpy-f2py-1.14.2-9.module+el8+2540+b19c9b35.ppc64le
python3-numpy-1.14.3-6.el8.ppc64le
python3-numpy-f2py-1.14.3-6.el8.ppc64le

How reproducible:
always

Steps to Reproduce:
1. python2 -c 'import numpy; numpy.test()'
2. python3 -c 'import numpy; numpy.test()'
3.

Actual results:

Running unit tests for numpy
NumPy version 1.14.2
NumPy relaxed strides checking option: True
NumPy is installed in /usr/lib64/python2.7/site-packages/numpy
Python version 2.7.15 (default, Dec 14 2018, 18:21:55) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
nose version 1.3.7
/usr/lib64/python2.7/site-packages/numpy/core/tests/test_longdouble.py:17: RuntimeWarning: overflow encountered in conversion from string

<...>

FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_str
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib64/python2.7/site-packages/numpy/core/tests/test_scalarprint.py", line 27, in test_str
    assert_equal(str(styp(val)), want, err_msg=msg)
  File "/usr/lib64/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal: for str(float128(-0.0))
 ACTUAL: '0.0'
 DESIRED: '-0.0'
----------------------------------------------------------------------
Ran 6461 tests in 56.342s

FAILED (KNOWNFAIL=21, SKIP=21, failures=21)


Expected results:
OK (KNOWNFAIL=14, SKIP=19)


Additional info:

Comment 1 Nikola Forró 2019-03-14 14:45:59 UTC
*** Bug 1688707 has been marked as a duplicate of this bug. ***

Comment 2 Nikola Forró 2019-03-20 15:26:29 UTC
Created attachment 1546110 [details]
Fix broken float128 on all arches except x86_64

Comment 7 errata-xmlrpc 2019-11-05 22:42:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3704