Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1687873 - numpy.test() fails
Summary: numpy.test() fails
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: numpy
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Nikola Forró
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
: 1688707 (view as bug list)
Depends On:
Blocks: 1688709
TreeView+ depends on / blocked
 
Reported: 2019-03-12 14:16 UTC by Jakub Heger
Modified: 2019-03-20 15:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)
Fix broken float128 on all arches except x86_64 (deleted)
2019-03-20 15:26 UTC, Nikola Forró
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.