Public bug reported:

https://launchpad.net/ubuntu/+source/numpy/1:2.3.5+ds-3build1/+build/32460062

one failing test:

=================================== FAILURES ===================================
__________________ TestAccuracy.test_validate_transcendentals __________________

self = <test_umath_accuracy.TestAccuracy object at 0x762b60e96210>

    @platform_skip
    def test_validate_transcendentals(self):
        with np.errstate(all='ignore'):
            data_dir = path.join(path.dirname(__file__), 'data')
            files = os.listdir(data_dir)
            files = list(filter(lambda f: f.endswith('.csv'), files))
            for filename in files:
                filepath = path.join(data_dir, filename)
                with open(filepath) as fid:
                    file_without_comments = (
                        r for r in fid if r[0] not in ('$', '#')
                    )
                    data = np.genfromtxt(file_without_comments,
                                         dtype=('|S39', '|S39', '|S39', int),
                                         names=('type', 'input', 'output', 
'ulperr'),
                                         delimiter=',',
                                         skip_header=1)
                    npname = path.splitext(filename)[0].split('-')[3]
                    npfunc = getattr(np, npname)
                    for datatype in np.unique(data['type']):
                        data_subset = data[data['type'] == datatype]
                        inval = 
np.array(str_to_float(data_subset['input'].astype(str), 
data_subset['type'].astype(str)), dtype=eval(datatype))
                        outval = 
np.array(str_to_float(data_subset['output'].astype(str), 
data_subset['type'].astype(str)), dtype=eval(datatype))
                        perm = np.random.permutation(len(inval))
                        inval = inval[perm]
                        outval = outval[perm]
                        maxulperr = data_subset['ulperr'].max()
>                       assert_array_max_ulp(npfunc(inval), outval, maxulperr)
E                       AssertionError: Arrays are not almost equal up to 2 ULP 
(max difference is 3 ULP)

data       = array([(b'np.float32', b'0x3ee7054c', b'0x3f4459ea', 2),
       (b'np.float32', b'0x7d1e2489', b'0x54095925', 2),
    ...76081e3232', 2)],
      shape=(1428,), dtype=[('type', 'S39'), ('input', 'S39'), ('output', 
'S39'), ('ulperr', '<i8')])
data_dir   = 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/numpy/_core/tests/data'
data_subset = array([(b'np.float64', b'0x800fa025695f404b', 
b'0xaaa4000ff64bb00c', 2),
       (b'np.float64', b'0xbfecc00198f98003',...e2', b'0xbfec1576081e3232', 2)],
      dtype=[('type', 'S39'), ('input', 'S39'), ('output', 'S39'), ('ulperr', 
'<i8')])
datatype   = np.bytes_(b'np.float64')
fid        = <_io.TextIOWrapper 
name='/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/numpy/_core/tests/data/umath-validation-set-cbrt.csv'
 mode='r' encoding='UTF-8'>
file_without_comments = <generator object 
TestAccuracy.test_validate_transcendentals.<locals>.<genexpr> at 0x762b038f5220>
filename   = 'umath-validation-set-cbrt.csv'
filepath   = 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/numpy/_core/tests/data/umath-validation-set-cbrt.csv'
files      = ['umath-validation-set-arcsin.csv', 
'umath-validation-set-cosh.csv', 'umath-validation-set-arcsinh.csv', 
'umath-validation-set-tan.csv', 'umath-validation-set-cbrt.csv', 
'umath-validation-set-log10.csv', ...]
inval      = array([-5.10708126e-001,  7.68820746e-002,  5.79405806e-001,
       -2.49002615e-001, -7.32595443e-001, -1.73652321e+3...    
-5.82103580e-001, -1.82814046e+307,  2.00524359e-308,
        8.18270035e-001, -2.24165251e+306, -5.85299464e-001])
maxulperr  = np.int64(2)
npfunc     = <ufunc 'cbrt'>
npname     = 'cbrt'
outval     = array([-7.99326582e-001,  4.25214793e-001,  8.33670206e-001,
       -6.29121657e-001, -9.01477180e-001, -5.57904928e+1...    
-8.34962088e-001, -2.63432803e+102,  2.71678776e-103,
        9.35331475e-001, -1.30874820e+102, -8.36487346e-001])
perm       = array([515, 231, 503, 682,  98, 709,  57, 649,  11, 168, 533, 583, 
334,
       418, 202, 665, 292,  69, 548,  87, 616,..., 172, 323, 378, 336, 701, 
162, 415, 524, 120, 687,
       114, 430, 605, 276, 379, 550, 632, 421, 711,  61, 356, 192])
self       = <test_umath_accuracy.TestAccuracy object at 0x762b60e96210>

numpy/_core/tests/test_umath_accuracy.py:77: AssertionError
=========================== short test summary info ============================
FAILED 
numpy/_core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals
= 1 failed, 47874 passed, 1969 skipped, 8 deselected, 34 xfailed, 5 xpassed in 
866.09s (0:14:26) =

** Affects: numpy (Ubuntu)
     Importance: High
         Status: Confirmed

** Affects: numpy (Ubuntu Resolute)
     Importance: High
         Status: Confirmed


** Tags: ftbfs rls-rr-incoming update-excuse

** Description changed:

+ https://launchpad.net/ubuntu/+source/numpy/1:2.3.5+ds-3build1/+build/32460062
+ 
  one failing test:
  
  =================================== FAILURES 
===================================
  __________________ TestAccuracy.test_validate_transcendentals 
__________________
  
  self = <test_umath_accuracy.TestAccuracy object at 0x762b60e96210>
  
-     @platform_skip
-     def test_validate_transcendentals(self):
-         with np.errstate(all='ignore'):
-             data_dir = path.join(path.dirname(__file__), 'data')
-             files = os.listdir(data_dir)
-             files = list(filter(lambda f: f.endswith('.csv'), files))
-             for filename in files:
-                 filepath = path.join(data_dir, filename)
-                 with open(filepath) as fid:
-                     file_without_comments = (
-                         r for r in fid if r[0] not in ('$', '#')
-                     )
-                     data = np.genfromtxt(file_without_comments,
-                                          dtype=('|S39', '|S39', '|S39', int),
-                                          names=('type', 'input', 'output', 
'ulperr'),
-                                          delimiter=',',
-                                          skip_header=1)
-                     npname = path.splitext(filename)[0].split('-')[3]
-                     npfunc = getattr(np, npname)
-                     for datatype in np.unique(data['type']):
-                         data_subset = data[data['type'] == datatype]
-                         inval = 
np.array(str_to_float(data_subset['input'].astype(str), 
data_subset['type'].astype(str)), dtype=eval(datatype))
-                         outval = 
np.array(str_to_float(data_subset['output'].astype(str), 
data_subset['type'].astype(str)), dtype=eval(datatype))
-                         perm = np.random.permutation(len(inval))
-                         inval = inval[perm]
-                         outval = outval[perm]
-                         maxulperr = data_subset['ulperr'].max()
+     @platform_skip
+     def test_validate_transcendentals(self):
+         with np.errstate(all='ignore'):
+             data_dir = path.join(path.dirname(__file__), 'data')
+             files = os.listdir(data_dir)
+             files = list(filter(lambda f: f.endswith('.csv'), files))
+             for filename in files:
+                 filepath = path.join(data_dir, filename)
+                 with open(filepath) as fid:
+                     file_without_comments = (
+                         r for r in fid if r[0] not in ('$', '#')
+                     )
+                     data = np.genfromtxt(file_without_comments,
+                                          dtype=('|S39', '|S39', '|S39', int),
+                                          names=('type', 'input', 'output', 
'ulperr'),
+                                          delimiter=',',
+                                          skip_header=1)
+                     npname = path.splitext(filename)[0].split('-')[3]
+                     npfunc = getattr(np, npname)
+                     for datatype in np.unique(data['type']):
+                         data_subset = data[data['type'] == datatype]
+                         inval = 
np.array(str_to_float(data_subset['input'].astype(str), 
data_subset['type'].astype(str)), dtype=eval(datatype))
+                         outval = 
np.array(str_to_float(data_subset['output'].astype(str), 
data_subset['type'].astype(str)), dtype=eval(datatype))
+                         perm = np.random.permutation(len(inval))
+                         inval = inval[perm]
+                         outval = outval[perm]
+                         maxulperr = data_subset['ulperr'].max()
  >                       assert_array_max_ulp(npfunc(inval), outval, maxulperr)
  E                       AssertionError: Arrays are not almost equal up to 2 
ULP (max difference is 3 ULP)
  
  data       = array([(b'np.float32', b'0x3ee7054c', b'0x3f4459ea', 2),
-        (b'np.float32', b'0x7d1e2489', b'0x54095925', 2),
-     ...76081e3232', 2)],
-       shape=(1428,), dtype=[('type', 'S39'), ('input', 'S39'), ('output', 
'S39'), ('ulperr', '<i8')])
+        (b'np.float32', b'0x7d1e2489', b'0x54095925', 2),
+     ...76081e3232', 2)],
+       shape=(1428,), dtype=[('type', 'S39'), ('input', 'S39'), ('output', 
'S39'), ('ulperr', '<i8')])
  data_dir   = 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/numpy/_core/tests/data'
  data_subset = array([(b'np.float64', b'0x800fa025695f404b', 
b'0xaaa4000ff64bb00c', 2),
-        (b'np.float64', b'0xbfecc00198f98003',...e2', b'0xbfec1576081e3232', 
2)],
-       dtype=[('type', 'S39'), ('input', 'S39'), ('output', 'S39'), ('ulperr', 
'<i8')])
+        (b'np.float64', b'0xbfecc00198f98003',...e2', b'0xbfec1576081e3232', 
2)],
+       dtype=[('type', 'S39'), ('input', 'S39'), ('output', 'S39'), ('ulperr', 
'<i8')])
  datatype   = np.bytes_(b'np.float64')
  fid        = <_io.TextIOWrapper 
name='/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/numpy/_core/tests/data/umath-validation-set-cbrt.csv'
 mode='r' encoding='UTF-8'>
  file_without_comments = <generator object 
TestAccuracy.test_validate_transcendentals.<locals>.<genexpr> at 0x762b038f5220>
  filename   = 'umath-validation-set-cbrt.csv'
  filepath   = 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/numpy/_core/tests/data/umath-validation-set-cbrt.csv'
  files      = ['umath-validation-set-arcsin.csv', 
'umath-validation-set-cosh.csv', 'umath-validation-set-arcsinh.csv', 
'umath-validation-set-tan.csv', 'umath-validation-set-cbrt.csv', 
'umath-validation-set-log10.csv', ...]
  inval      = array([-5.10708126e-001,  7.68820746e-002,  5.79405806e-001,
-        -2.49002615e-001, -7.32595443e-001, -1.73652321e+3...    
-5.82103580e-001, -1.82814046e+307,  2.00524359e-308,
-         8.18270035e-001, -2.24165251e+306, -5.85299464e-001])
+        -2.49002615e-001, -7.32595443e-001, -1.73652321e+3...    
-5.82103580e-001, -1.82814046e+307,  2.00524359e-308,
+         8.18270035e-001, -2.24165251e+306, -5.85299464e-001])
  maxulperr  = np.int64(2)
  npfunc     = <ufunc 'cbrt'>
  npname     = 'cbrt'
  outval     = array([-7.99326582e-001,  4.25214793e-001,  8.33670206e-001,
-        -6.29121657e-001, -9.01477180e-001, -5.57904928e+1...    
-8.34962088e-001, -2.63432803e+102,  2.71678776e-103,
-         9.35331475e-001, -1.30874820e+102, -8.36487346e-001])
+        -6.29121657e-001, -9.01477180e-001, -5.57904928e+1...    
-8.34962088e-001, -2.63432803e+102,  2.71678776e-103,
+         9.35331475e-001, -1.30874820e+102, -8.36487346e-001])
  perm       = array([515, 231, 503, 682,  98, 709,  57, 649,  11, 168, 533, 
583, 334,
-        418, 202, 665, 292,  69, 548,  87, 616,..., 172, 323, 378, 336, 701, 
162, 415, 524, 120, 687,
-        114, 430, 605, 276, 379, 550, 632, 421, 711,  61, 356, 192])
+        418, 202, 665, 292,  69, 548,  87, 616,..., 172, 323, 378, 336, 701, 
162, 415, 524, 120, 687,
+        114, 430, 605, 276, 379, 550, 632, 421, 711,  61, 356, 192])
  self       = <test_umath_accuracy.TestAccuracy object at 0x762b60e96210>
  
  numpy/_core/tests/test_umath_accuracy.py:77: AssertionError
  =========================== short test summary info 
============================
  FAILED 
numpy/_core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals
  = 1 failed, 47874 passed, 1969 skipped, 8 deselected, 34 xfailed, 5 xpassed 
in 866.09s (0:14:26) =

** Changed in: numpy (Ubuntu)
       Status: New => Confirmed

** Changed in: numpy (Ubuntu)
   Importance: Undecided => High

** Tags added: ftbfs rls-rr-incoming update-excuse

** Also affects: numpy (Ubuntu Resolute)
   Importance: High
       Status: Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146290

Title:
  numpy ftbfs on amd64v3, blocking python3.13 removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/numpy/+bug/2146290/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to