Paste
Create
Recent
Log in
Sign up
Error log
created by
Guillaume_G
will expire in
2 months
Copy link to clipboard
Raw
[ 1336s] =================================== FAILURES =================================== [ 1336s] ____________________ TestQRdelete_f.test_unsupported_dtypes ____________________ [ 1336s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1336s] [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_f object at 0xffff8581e880> [ 1336s] [ 1336s] def test_unsupported_dtypes(self): [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', [ 1336s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1336s] 'float16', 'longdouble', 'longcomplex', [ 1336s] 'bool'] [ 1336s] a, q0, r0 = self.generate('tall') [ 1336s] for dtype in dts: [ 1336s] q = q0.real.astype(dtype) [ 1336s] > r = r0.real.astype(dtype) [ 1336s] E RuntimeWarning: invalid value encountered in cast [ 1336s] [ 1336s] a = array([[0.36852294, 0.9763755 , 0.73179656, 0.6848747 , 0.3976276 , [ 1336s] 0.31758112, 0.773892 ], [ 1336s] [0.6182157...], [ 1336s] [0.21673536, 0.20183498, 0.9686967 , 0.1716864 , 0.2923851 , [ 1336s] 0.08459105, 0.8391204 ]], dtype=float32) [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1336s] dtype = 'uint32' [ 1336s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0,..., 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint32) [ 1336s] q0 = array([[-0.19536638, 0.5839469 , 0.16412216, -0.07520359, -0.1437492 , [ 1336s] 0.31768155, -0.07468881, -0.14195415... 0.21595429, -0.08744115, 0.18425307, 0.05273637, 0.159047 , [ 1336s] 0.19921945, 0.6275706 ]], dtype=float32) [ 1336s] r = array([[65535, 65535, 65535, 65535, 65535, 65535, 65535], [ 1336s] [ 0, 1, 0, 0, 0, 0, 0], [ 1336s] ... 0, 0, 0, 0, 0, 0, 0], [ 1336s] [ 0, 0, 0, 0, 0, 0, 0]], dtype=uint16) [ 1336s] r0 = array([[-1.8863169 , -1.5018785 , -1.087199 , -1.9040003 , -1.8768053 , [ 1336s] -1.3633578 , -1.2921629 ], [ 1336s] [ 0... [ 0. , 0. , 0. , 0. , 0. , [ 1336s] 0. , 0. ]], dtype=float32) [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_f object at 0xffff8581e880> [ 1336s] [ 1336s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:584: RuntimeWarning [ 1336s] ____________________ TestQRdelete_F.test_unsupported_dtypes ____________________ [ 1336s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1336s] [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_F object at 0xffff858721f0> [ 1336s] [ 1336s] def test_unsupported_dtypes(self): [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', [ 1336s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1336s] 'float16', 'longdouble', 'longcomplex', [ 1336s] 'bool'] [ 1336s] a, q0, r0 = self.generate('tall') [ 1336s] for dtype in dts: [ 1336s] q = q0.real.astype(dtype) [ 1336s] > r = r0.real.astype(dtype) [ 1336s] E RuntimeWarning: invalid value encountered in cast [ 1336s] [ 1336s] a = array([[0.36852294+0.7065659j , 0.9763755 +0.8815727j , [ 1336s] 0.73179656+0.5390478j , 0.6848747 +0.2577209j , [ 1336s] ...0.8069605j , [ 1336s] 0.2923851 +0.9023696j , 0.08459105+0.7541054j , [ 1336s] 0.8391204 +0.23152167j]], dtype=complex64) [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1336s] dtype = 'uint8' [ 1336s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0,...0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) [ 1336s] q0 = array([[-0.11519074-0.22085421j, 0.40310776+0.25545138j, [ 1336s] 0.20641457-0.02725356j, 0.04916081+0.12054586j, [ 1336s] ....179455j , 0.10256997-0.11285217j, [ 1336s] -0.05898745+0.03267017j, 0.5694972 -0.06679235j]], [ 1336s] dtype=complex64) [ 1336s] r = array([[-3, -2, -1, -2, -2, -2, -2], [ 1336s] [ 0, 1, 0, 0, 0, 0, 0], [ 1336s] [ 0, 0, 1, 0, 0, 0, 1], [ 1336s] ...0, 0], [ 1336s] [ 0, 0, 0, 0, 0, 0, 0], [ 1336s] [ 0, 0, 0, 0, 0, 0, 0], [ 1336s] [ 0, 0, 0, 0, 0, 0, 0]]) [ 1336s] r0 = array([[-3.1992414 +0.j , -2.1899548 +0.23892963j, [ 1336s] -1.6467261 +0.47293147j, -2.4033258 +0.4177642j , [ 1336s] ... , [ 1336s] 0. +0.j , 0. +0.j , [ 1336s] 0. +0.j ]], dtype=complex64) [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_F object at 0xffff858721f0> [ 1336s] [ 1336s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:584: RuntimeWarning [ 1336s] ____________________ TestQRdelete_d.test_unsupported_dtypes ____________________ [ 1336s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1336s] [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_d object at 0xffff85a85a60> [ 1336s] [ 1336s] def test_unsupported_dtypes(self): [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', [ 1336s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1336s] 'float16', 'longdouble', 'longcomplex', [ 1336s] 'bool'] [ 1336s] a, q0, r0 = self.generate('tall') [ 1336s] for dtype in dts: [ 1336s] q = q0.real.astype(dtype) [ 1336s] > r = r0.real.astype(dtype) [ 1336s] E RuntimeWarning: invalid value encountered in cast [ 1336s] [ 1336s] a = array([[0.36852295, 0.97637554, 0.73179659, 0.68487472, 0.39762759, [ 1336s] 0.31758111, 0.77389198], [ 1336s] [0.6182157...649, 0.42460085], [ 1336s] [0.21673536, 0.20183498, 0.96869672, 0.1716864 , 0.29238511, [ 1336s] 0.08459105, 0.83912041]]) [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1336s] dtype = 'uint64' [ 1336s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0,..., 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint64) [ 1336s] q0 = array([[-0.19536641, 0.5839469 , 0.1641222 , -0.07520373, -0.14374926, [ 1336s] 0.31768146, -0.07468878, -0.14195424....11954062, [ 1336s] 0.21595429, -0.08744109, 0.1842531 , 0.05273638, 0.15904703, [ 1336s] 0.19921948, 0.62757057]]) [ 1336s] r = array([[4294967295, 4294967295, 4294967295, 4294967295, 4294967295, [ 1336s] 4294967295, 4294967295], [ 1336s] [ ...0], [ 1336s] [ 0, 0, 0, 0, 0, [ 1336s] 0, 0]], dtype=uint32) [ 1336s] r0 = array([[-1.88631691, -1.50187849, -1.08719907, -1.90400052, -1.87680516, [ 1336s] -1.36335782, -1.29216278], [ 1336s] [ 0... ], [ 1336s] [ 0. , 0. , 0. , 0. , 0. , [ 1336s] 0. , 0. ]]) [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_d object at 0xffff85a85a60> [ 1336s] [ 1336s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:584: RuntimeWarning [ 1336s] ____________________ TestQRdelete_D.test_unsupported_dtypes ____________________ [ 1336s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1336s] [ 1336s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0xffff857bb5b0> [ 1336s] [ 1336s] def test_unsupported_dtypes(self): [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', [ 1336s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1336s] 'float16', 'longdouble', 'longcomplex', [ 1336s] 'bool'] [ 1336s] a, q0, r0 = self.generate('tall') [ 1336s] for dtype in dts: [ 1336s] q = q0.real.astype(dtype) [ 1336s] > r = r0.real.astype(dtype) [ 1336s] E RuntimeWarning: invalid value encountered in cast [ 1336s] [ 1336s] a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j, [ 1336s] 0.73179659+0.53904779j, 0.68487472+0.25772088j, [ 1336s] ...842j, 0.1716864 +0.8069605j , [ 1336s] 0.29238511+0.90236963j, 0.08459105+0.7541054j , [ 1336s] 0.83912041+0.23152167j]]) [ 1336s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1336s] dtype = 'uint8' [ 1336s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0,...0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1336s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) [ 1336s] q0 = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j, [ 1336s] 0.20641454-0.02725359j, 0.04916084+0.1205459j , [ 1336s] ..., [ 1336s] 0.07221112-0.17945509j, 0.10256997-0.11285204j, [ 1336s] -0.05898739+0.03267021j, 0.56949722-0.06679237j]]) [ 1337s] r = array([[-3, -2, -1, -2, -2, -2, -2], [ 1337s] [ 0, 1, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 1, 0, 0, 0, 1], [ 1337s] ...0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0]]) [ 1337s] r0 = array([[-3.19924142+0.j , -2.18995473+0.2389295j , [ 1337s] -1.64672593+0.4729315j , -2.40332574+0.41776413j, [ 1337s] ..., 0. +0.j , [ 1337s] 0. +0.j , 0. +0.j , [ 1337s] 0. +0.j ]]) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0xffff857bb5b0> [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:584: RuntimeWarning [ 1337s] ____________________ TestQRinsert_f.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_f object at 0xffff85728d30> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1337s] 'float16', 'longdouble', 'longcomplex', [ 1337s] 'bool'] [ 1337s] a, q0, r0, u0 = self.generate('sqr', which='row') [ 1337s] for dtype in dts: [ 1337s] q = q0.real.astype(dtype) [ 1337s] > r = r0.real.astype(dtype) [ 1337s] E RuntimeWarning: invalid value encountered in cast [ 1337s] [ 1337s] a = array([[0.36852294, 0.9763755 , 0.73179656, 0.6848747 , 0.3976276 , [ 1337s] 0.31758112, 0.773892 , 0.61821574], [ 1337s] ....58438575, 0.39822215, 0.17540698, 0.5068626 , 0.8403499 , [ 1337s] 0.21569724, 0.06281709, 0.6456834 ]], dtype=float32) [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1337s] dtype = 'uint32' [ 1337s] q = array([[0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0,..., 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint32) [ 1337s] q0 = array([[-0.22000468, -0.7565924 , 0.2180825 , 0.06926568, 0.07083549, [ 1337s] 0.2872585 , 0.39619464, 0.2868846 ...7 , -0.08638804, 0.3843884 , -0.24081734, 0.6719711 , [ 1337s] -0.23791648, -0.25840402, -0.30025893]], dtype=float32) [ 1337s] r = array([[65535, 0, 65535, 65535, 65535, 65535, 65535, 65535], [ 1337s] [ 0, 65535, 0, 0, 0, 0, ... 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0, 0]], [ 1337s] dtype=uint16) [ 1337s] r0 = array([[-1.6750687 , -0.88567406, -1.4487963 , -1.1373689 , -1.6565504 , [ 1337s] -1.2026439 , -1.2357404 , -1.0063753 ... , 0. , 0. , 0. , 0. , [ 1337s] 0. , 0. , -0.03147494]], dtype=float32) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_f object at 0xffff85728d30> [ 1337s] u = array([0, 0, 0, 0, 0, 0, 0, 0], dtype=uint16) [ 1337s] u0 = array([0.14279479, 0.0637404 , 0.8984184 , 0.67191935, 0.13461564, [ 1337s] 0.00291094, 0.61851704, 0.23268387], dtype=float32) [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1128: RuntimeWarning [ 1337s] ____________________ TestQRinsert_F.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_F object at 0xffff856fc760> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1337s] 'float16', 'longdouble', 'longcomplex', [ 1337s] 'bool'] [ 1337s] a, q0, r0, u0 = self.generate('sqr', which='row') [ 1337s] for dtype in dts: [ 1337s] q = q0.real.astype(dtype) [ 1337s] > r = r0.real.astype(dtype) [ 1337s] E RuntimeWarning: invalid value encountered in cast [ 1337s] [ 1337s] a = array([[0.36852294+0.14279479j, 0.9763755 +0.0637404j , [ 1337s] 0.73179656+0.8984184j , 0.6848747 +0.67191935j, [ 1337s] ...403499 +0.74526507j, 0.21569724+0.74108875j, [ 1337s] 0.06281709+0.9620157j , 0.6456834 +0.2662364j ]], dtype=complex64) [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1337s] dtype = 'uint8' [ 1337s] q = array([[0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0,...0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) [ 1337s] q0 = array([[-0.17198575-0.06664082j, -0.58083946+0.08861113j, [ 1337s] -0.00882071-0.4475597j , 0.13044013-0.2557863j , [ 1337s] ....40906224j, -0.16611324+0.40610582j, [ 1337s] -0.03277582+0.29134366j, 0.41810265-0.22862619j]], [ 1337s] dtype=complex64) [ 1337s] r = array([[-2, -1, -2, -1, -2, -1, -1, -1], [ 1337s] [ 0, -1, 0, -1, 0, 0, 0, -1], [ 1337s] [ 0, 0, -1, 0, 0, 0, 0, ... [ 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0, 0]]) [ 1337s] r0 = array([[-2.1427524 +0.j , -1.3640912 -0.53144914j, [ 1337s] -2.0665147 -0.3885994j , -1.6122253 -0.5489389j , [ 1337s] ....j , 0. +0.j , [ 1337s] 0. +0.j , 0.4669638 +0.j ]], [ 1337s] dtype=complex64) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_F object at 0xffff856fc760> [ 1337s] u = array([0, 0, 0, 0, 0, 0, 0, 0]) [ 1337s] u0 = array([0.6900497 +0.19360553j, 0.8277505 +0.34040245j, [ 1337s] 0.47553715+0.61701447j, 0.2670281 +0.888258j , [ 1337s] 0.5072961 +0.8965678j , 0.4261234 +0.67433536j, [ 1337s] 0.40090087+0.24952374j, 0.5327176 +0.5563584j ], dtype=complex64) [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1128: RuntimeWarning [ 1337s] ____________________ TestQRinsert_d.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_d object at 0xffff856b60a0> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1337s] 'float16', 'longdouble', 'longcomplex', [ 1337s] 'bool'] [ 1337s] a, q0, r0, u0 = self.generate('sqr', which='row') [ 1337s] for dtype in dts: [ 1337s] q = q0.real.astype(dtype) [ 1337s] > r = r0.real.astype(dtype) [ 1337s] E RuntimeWarning: invalid value encountered in cast [ 1337s] [ 1337s] a = array([[0.36852295, 0.97637554, 0.73179659, 0.68487472, 0.39762759, [ 1337s] 0.31758111, 0.77389198, 0.61821572], [ 1337s] ...772], [ 1337s] [0.58438573, 0.39822214, 0.17540698, 0.50686261, 0.84034989, [ 1337s] 0.21569725, 0.06281709, 0.64568342]]) [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1337s] dtype = 'uint64' [ 1337s] q = array([[0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0,..., 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint64) [ 1337s] q0 = array([[-0.22000467, -0.75659239, 0.21808254, 0.06926573, 0.07083556, [ 1337s] 0.2872585 , 0.3961947 , 0.28688465... [-0.34887267, -0.08638804, 0.38438835, -0.24081737, 0.67197107, [ 1337s] -0.23791652, -0.25840417, -0.30025896]]) [ 1337s] r = array([[4294967295, 0, 4294967295, 4294967295, 4294967295, [ 1337s] 4294967295, 4294967295, 4294967295], [ 1337s] ... 0, 0, 0, 0, 0, [ 1337s] 0, 0, 0]], dtype=uint32) [ 1337s] r0 = array([[-1.67506881, -0.88567412, -1.44879617, -1.13736886, -1.65655048, [ 1337s] -1.20264373, -1.23574033, -1.0063752 ... [ 0. , 0. , 0. , 0. , 0. , [ 1337s] 0. , 0. , -0.031475 ]]) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_d object at 0xffff856b60a0> [ 1337s] u = array([0, 0, 0, 0, 0, 0, 0, 0], dtype=uint32) [ 1337s] u0 = array([0.14279479, 0.06374039, 0.89841842, 0.67191936, 0.13461565, [ 1337s] 0.00291094, 0.61851704, 0.23268386]) [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1128: RuntimeWarning [ 1337s] ____________________ TestQRinsert_D.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0xffff85662c10> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1337s] 'float16', 'longdouble', 'longcomplex', [ 1337s] 'bool'] [ 1337s] a, q0, r0, u0 = self.generate('sqr', which='row') [ 1337s] for dtype in dts: [ 1337s] q = q0.real.astype(dtype) [ 1337s] > r = r0.real.astype(dtype) [ 1337s] E RuntimeWarning: invalid value encountered in cast [ 1337s] [ 1337s] a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j, [ 1337s] 0.73179659+0.89841842j, 0.68487472+0.67191936j, [ 1337s] ...233j, [ 1337s] 0.84034989+0.74526508j, 0.21569725+0.74108876j, [ 1337s] 0.06281709+0.96201566j, 0.64568342+0.2662364j ]]) [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1337s] dtype = 'uint8' [ 1337s] q = array([[0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0,...0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) [ 1337s] q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j, [ 1337s] -0.00882077-0.44755969j, 0.13044019-0.25578624j, [ 1337s] ..., [ 1337s] -0.00772402-0.40906233j, -0.16611316+0.40610583j, [ 1337s] -0.03277588+0.29134352j, 0.41810281-0.22862595j]]) [ 1337s] r = array([[-2, -1, -2, -1, -2, -1, -1, -1], [ 1337s] [ 0, -1, 0, -1, 0, 0, 0, -1], [ 1337s] [ 0, 0, -1, 0, 0, 0, 0, ... [ 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0, 0]]) [ 1337s] r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j, [ 1337s] -2.06651488-0.38859942j, -1.61222529-0.54893885j, [ 1337s] ..., [ 1337s] 0. +0.j , 0. +0.j , [ 1337s] 0. +0.j , 0.46696381+0.j ]]) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0xffff85662c10> [ 1337s] u = array([0, 0, 0, 0, 0, 0, 0, 0]) [ 1337s] u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j, [ 1337s] 0.47553715+0.6170145j , 0.2670281 +0.888258j , [ 1337s] 0.50729606+0.89656783j, 0.42612341+0.67433536j, [ 1337s] 0.40090086+0.24952374j, 0.5327176 +0.5563584j ]) [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1128: RuntimeWarning [ 1337s] ____________________ TestQRupdate_f.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_f object at 0xffff85a73670> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1337s] 'float16', 'longdouble', 'longcomplex', [ 1337s] 'bool'] [ 1337s] a, q0, r0, u0, v0 = self.generate('tall') [ 1337s] for dtype in dts: [ 1337s] q = q0.real.astype(dtype) [ 1337s] > r = r0.real.astype(dtype) [ 1337s] E RuntimeWarning: invalid value encountered in cast [ 1337s] [ 1337s] a = array([[0.36852294, 0.9763755 , 0.73179656, 0.6848747 , 0.3976276 , [ 1337s] 0.31758112, 0.773892 ], [ 1337s] [0.6182157...], [ 1337s] [0.21673536, 0.20183498, 0.9686967 , 0.1716864 , 0.2923851 , [ 1337s] 0.08459105, 0.8391204 ]], dtype=float32) [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1337s] dtype = 'uint32' [ 1337s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0,..., 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint32) [ 1337s] q0 = array([[-0.19536638, 0.5839469 , 0.16412216, -0.07520359, -0.1437492 , [ 1337s] 0.31768155, -0.07468881, -0.14195415... 0.21595429, -0.08744115, 0.18425307, 0.05273637, 0.159047 , [ 1337s] 0.19921945, 0.6275706 ]], dtype=float32) [ 1337s] r = array([[65535, 65535, 65535, 65535, 65535, 65535, 65535], [ 1337s] [ 0, 1, 0, 0, 0, 0, 0], [ 1337s] ... 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0]], dtype=uint16) [ 1337s] r0 = array([[-1.8863169 , -1.5018785 , -1.087199 , -1.9040003 , -1.8768053 , [ 1337s] -1.3633578 , -1.2921629 ], [ 1337s] [ 0... [ 0. , 0. , 0. , 0. , 0. , [ 1337s] 0. , 0. ]], dtype=float32) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_f object at 0xffff85a73670> [ 1337s] u = array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=uint16) [ 1337s] u0 = array([0.7065659 , 0.8815727 , 0.5390478 , 0.2577209 , 0.6512698 , [ 1337s] 0.8511807 , 0.83206934, 0.9410304 , 0.35143653, 0.05961663, [ 1337s] 0.4110347 , 0.38368523], dtype=float32) [ 1337s] v = array([0, 0, 0, 0, 0, 0, 0], dtype=uint16) [ 1337s] v0 = array([0.91895974, 0.27873206, 0.98640174, 0.17771357, 0.6816934 , [ 1337s] 0.8678647 , 0.5520435 ], dtype=float32) [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1561: RuntimeWarning [ 1337s] ____________________ TestQRupdate_F.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_F object at 0xffff85a96550> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1337s] 'float16', 'longdouble', 'longcomplex', [ 1337s] 'bool'] [ 1337s] a, q0, r0, u0, v0 = self.generate('tall') [ 1337s] for dtype in dts: [ 1337s] q = q0.real.astype(dtype) [ 1337s] > r = r0.real.astype(dtype) [ 1337s] E RuntimeWarning: invalid value encountered in cast [ 1337s] [ 1337s] a = array([[0.36852294+0.7065659j , 0.9763755 +0.8815727j , [ 1337s] 0.73179656+0.5390478j , 0.6848747 +0.2577209j , [ 1337s] ...0.8069605j , [ 1337s] 0.2923851 +0.9023696j , 0.08459105+0.7541054j , [ 1337s] 0.8391204 +0.23152167j]], dtype=complex64) [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1337s] dtype = 'uint8' [ 1337s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0,...0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1337s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) [ 1337s] q0 = array([[-0.11519074-0.22085421j, 0.40310776+0.25545138j, [ 1337s] 0.20641457-0.02725356j, 0.04916081+0.12054586j, [ 1337s] ....179455j , 0.10256997-0.11285217j, [ 1337s] -0.05898745+0.03267017j, 0.5694972 -0.06679235j]], [ 1337s] dtype=complex64) [ 1337s] r = array([[-3, -2, -1, -2, -2, -2, -2], [ 1337s] [ 0, 1, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 1, 0, 0, 0, 1], [ 1337s] ...0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0], [ 1337s] [ 0, 0, 0, 0, 0, 0, 0]]) [ 1337s] r0 = array([[-3.1992414 +0.j , -2.1899548 +0.23892963j, [ 1337s] -1.6467261 +0.47293147j, -2.4033258 +0.4177642j , [ 1337s] ... , [ 1337s] 0. +0.j , 0. +0.j , [ 1337s] 0. +0.j ]], dtype=complex64) [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_F object at 0xffff85a96550> [ 1337s] u = array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) [ 1337s] u0 = array([0.97255677+0.2677708j , 0.36071622+0.78994566j, [ 1337s] 0.28201392+0.6749693j , 0.7058309 +0.81774515j, [ 1337s] 0....09839256+0.4370013j , 0.56218547+0.88397735j, [ 1337s] 0.9777969 +0.18651322j, 0.14721884+0.59979177j], dtype=complex64) [ 1337s] v = array([0, 0, 0, 0, 0, 0, 0]) [ 1337s] v0 = array([0.01989467+0.01116458j, 0.23820348+0.06328583j, [ 1337s] 0.58360934+0.43995547j, 0.6349242 +0.60213315j, [ 1337s] 0.45233786+0.8821911j , 0.6391369 +0.71684253j, [ 1337s] 0.03427202+0.8129181j ], dtype=complex64) [ 1337s] [ 1337s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1561: RuntimeWarning [ 1337s] ____________________ TestQRupdate_d.test_unsupported_dtypes ____________________ [ 1337s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1337s] [ 1337s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_d object at 0xffff8573d3d0> [ 1337s] [ 1337s] def test_unsupported_dtypes(self): [ 1337s] dts = ['int8', 'int16', 'int32', 'int64', [ 1337s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1338s] 'float16', 'longdouble', 'longcomplex', [ 1338s] 'bool'] [ 1338s] a, q0, r0, u0, v0 = self.generate('tall') [ 1338s] for dtype in dts: [ 1338s] q = q0.real.astype(dtype) [ 1338s] > r = r0.real.astype(dtype) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] a = array([[0.36852295, 0.97637554, 0.73179659, 0.68487472, 0.39762759, [ 1338s] 0.31758111, 0.77389198], [ 1338s] [0.6182157...649, 0.42460085], [ 1338s] [0.21673536, 0.20183498, 0.96869672, 0.1716864 , 0.29238511, [ 1338s] 0.08459105, 0.83912041]]) [ 1338s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1338s] dtype = 'uint64' [ 1338s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0,..., 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint64) [ 1338s] q0 = array([[-0.19536641, 0.5839469 , 0.1641222 , -0.07520373, -0.14374926, [ 1338s] 0.31768146, -0.07468878, -0.14195424....11954062, [ 1338s] 0.21595429, -0.08744109, 0.1842531 , 0.05273638, 0.15904703, [ 1338s] 0.19921948, 0.62757057]]) [ 1338s] r = array([[4294967295, 4294967295, 4294967295, 4294967295, 4294967295, [ 1338s] 4294967295, 4294967295], [ 1338s] [ ...0], [ 1338s] [ 0, 0, 0, 0, 0, [ 1338s] 0, 0]], dtype=uint32) [ 1338s] r0 = array([[-1.88631691, -1.50187849, -1.08719907, -1.90400052, -1.87680516, [ 1338s] -1.36335782, -1.29216278], [ 1338s] [ 0... ], [ 1338s] [ 0. , 0. , 0. , 0. , 0. , [ 1338s] 0. , 0. ]]) [ 1338s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_d object at 0xffff8573d3d0> [ 1338s] u = array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=uint32) [ 1338s] u0 = array([0.70656594, 0.88157274, 0.53904779, 0.25772088, 0.65126979, [ 1338s] 0.8511807 , 0.83206935, 0.94103036, 0.35143653, 0.05961663, [ 1338s] 0.4110347 , 0.38368523]) [ 1338s] v = array([0, 0, 0, 0, 0, 0, 0], dtype=uint32) [ 1338s] v0 = array([0.91895973, 0.27873207, 0.98640171, 0.17771357, 0.68169337, [ 1338s] 0.86786474, 0.55204352]) [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1561: RuntimeWarning [ 1338s] ____________________ TestQRupdate_D.test_unsupported_dtypes ____________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0xffff85755400> [ 1338s] [ 1338s] def test_unsupported_dtypes(self): [ 1338s] dts = ['int8', 'int16', 'int32', 'int64', [ 1338s] 'uint8', 'uint16', 'uint32', 'uint64', [ 1338s] 'float16', 'longdouble', 'longcomplex', [ 1338s] 'bool'] [ 1338s] a, q0, r0, u0, v0 = self.generate('tall') [ 1338s] for dtype in dts: [ 1338s] q = q0.real.astype(dtype) [ 1338s] > r = r0.real.astype(dtype) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j, [ 1338s] 0.73179659+0.53904779j, 0.68487472+0.25772088j, [ 1338s] ...842j, 0.1716864 +0.8069605j , [ 1338s] 0.29238511+0.90236963j, 0.08459105+0.7541054j , [ 1338s] 0.83912041+0.23152167j]]) [ 1338s] dts = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...] [ 1338s] dtype = 'uint8' [ 1338s] q = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0,...0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1338s] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) [ 1338s] q0 = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j, [ 1338s] 0.20641454-0.02725359j, 0.04916084+0.1205459j , [ 1338s] ..., [ 1338s] 0.07221112-0.17945509j, 0.10256997-0.11285204j, [ 1338s] -0.05898739+0.03267021j, 0.56949722-0.06679237j]]) [ 1338s] r = array([[-3, -2, -1, -2, -2, -2, -2], [ 1338s] [ 0, 1, 0, 0, 0, 0, 0], [ 1338s] [ 0, 0, 1, 0, 0, 0, 1], [ 1338s] ...0, 0], [ 1338s] [ 0, 0, 0, 0, 0, 0, 0], [ 1338s] [ 0, 0, 0, 0, 0, 0, 0], [ 1338s] [ 0, 0, 0, 0, 0, 0, 0]]) [ 1338s] r0 = array([[-3.19924142+0.j , -2.18995473+0.2389295j , [ 1338s] -1.64672593+0.4729315j , -2.40332574+0.41776413j, [ 1338s] ..., 0. +0.j , [ 1338s] 0. +0.j , 0. +0.j , [ 1338s] 0. +0.j ]]) [ 1338s] self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0xffff85755400> [ 1338s] u = array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) [ 1338s] u0 = array([0.97255678+0.26777079j, 0.36071622+0.78994569j, [ 1338s] 0.28201392+0.67496934j, 0.70583085+0.81774514j, [ 1338s] 0...358533j, [ 1338s] 0.09839256+0.43700129j, 0.56218546+0.88397738j, [ 1338s] 0.9777969 +0.18651321j, 0.14721884+0.59979179j]) [ 1338s] v = array([0, 0, 0, 0, 0, 0, 0]) [ 1338s] v0 = array([0.01989467+0.01116458j, 0.23820349+0.06328583j, [ 1338s] 0.58360935+0.43995546j, 0.63492416+0.60213318j, [ 1338s] 0.45233787+0.88219112j, 0.63913689+0.71684251j, [ 1338s] 0.03427202+0.81291815j]) [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/linalg/tests/test_decomp_update.py:1561: RuntimeWarning [ 1338s] _____________________________ TestDIA.test_add_sub _____________________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff7fd86e80> [ 1338s] [ 1338s] def test_add_sub(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal( [ 1338s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1338s] ) [ 1338s] [ 1338s] # check conversions [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if not np.issubdtype(y, np.complexfloating): [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1338s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1338s] [15, -2, 1, 0, 0, 0], [ 1338s] [ 0, 7, 1, 1, 0, 0], [ 1338s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 18 stored elements (7 diagonals) in DIAgonal format> [ 1338s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff7fd86e80> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1338s] _______________________________ TestDIA.test_mu ________________________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff7fd86fd0> [ 1338s] [ 1338s] def test_mu(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1338s] self.__A @ self.__B.T) [ 1338s] [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if np.issubdtype(y, np.complexfloating): [ 1338s] B = self.__B.astype(y) [ 1338s] else: [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1338s] D1 = array([[ 0, 11, 7, 18], [ 1338s] [ 0, 11, 7, 18], [ 1338s] [ 0, 0, 0, 0], [ 1338s] [ 0, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 6 stored elements in Compressed Sparse Row format> [ 1338s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff7fd86fd0> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1338s] _____________________________ TestBSR.test_add_sub _____________________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff7fcf9e50> [ 1338s] [ 1338s] def test_add_sub(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal( [ 1338s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1338s] ) [ 1338s] [ 1338s] # check conversions [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if not np.issubdtype(y, np.complexfloating): [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1338s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1338s] [15, -2, 1, 0, 0, 0], [ 1338s] [ 0, 7, 1, 1, 0, 0], [ 1338s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1338s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff7fcf9e50> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1338s] _______________________________ TestBSR.test_mu ________________________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff7fcf9fa0> [ 1338s] [ 1338s] def test_mu(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1338s] self.__A @ self.__B.T) [ 1338s] [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if np.issubdtype(y, np.complexfloating): [ 1338s] B = self.__B.astype(y) [ 1338s] else: [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1338s] D1 = array([[ 0, 11, 7, 18], [ 1338s] [ 0, 11, 7, 18], [ 1338s] [ 0, 0, 0, 0], [ 1338s] [ 0, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 6 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1338s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff7fcf9fa0> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1338s] _______________________ TestCSRNonCanonical.test_add_sub _______________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestCSRNonCanonical object at 0xffff7fcd44c0> [ 1338s] [ 1338s] def test_add_sub(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal( [ 1338s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1338s] ) [ 1338s] [ 1338s] # check conversions [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if not np.issubdtype(y, np.complexfloating): [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 10 stored elements in Compressed Sparse Row format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 14 stored elements in Compressed Sparse Row format> [ 1338s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1338s] [15, -2, 1, 0, 0, 0], [ 1338s] [ 0, 7, 1, 1, 0, 0], [ 1338s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 13 stored elements in Compressed Sparse Row format> [ 1338s] self = <scipy.sparse.tests.test_base.TestCSRNonCanonical object at 0xffff7fcd44c0> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1338s] _________________________ TestCSRNonCanonical.test_mu __________________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestCSRNonCanonical object at 0xffff7fcd4610> [ 1338s] [ 1338s] def test_mu(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1338s] self.__A @ self.__B.T) [ 1338s] [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if np.issubdtype(y, np.complexfloating): [ 1338s] B = self.__B.astype(y) [ 1338s] else: [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 10 stored elements in Compressed Sparse Row format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 14 stored elements in Compressed Sparse Row format> [ 1338s] D1 = array([[ 0, 11, 7, 18], [ 1338s] [ 0, 11, 7, 18], [ 1338s] [ 0, 0, 0, 0], [ 1338s] [ 0, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 6 stored elements in Compressed Sparse Row format> [ 1338s] self = <scipy.sparse.tests.test_base.TestCSRNonCanonical object at 0xffff7fcd4610> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1338s] _______________________ TestCSCNonCanonical.test_add_sub _______________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestCSCNonCanonical object at 0xffff7fe23bb0> [ 1338s] [ 1338s] def test_add_sub(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal( [ 1338s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1338s] ) [ 1338s] [ 1338s] # check conversions [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if not np.issubdtype(y, np.complexfloating): [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 10 stored elements in Compressed Sparse Column format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 14 stored elements in Compressed Sparse Column format> [ 1338s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1338s] [15, -2, 1, 0, 0, 0], [ 1338s] [ 0, 7, 1, 1, 0, 0], [ 1338s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 13 stored elements in Compressed Sparse Column format> [ 1338s] self = <scipy.sparse.tests.test_base.TestCSCNonCanonical object at 0xffff7fe23bb0> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1338s] _________________________ TestCSCNonCanonical.test_mu __________________________ [ 1338s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestCSCNonCanonical object at 0xffff7fe23250> [ 1338s] [ 1338s] def test_mu(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1338s] self.__A @ self.__B.T) [ 1338s] [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if np.issubdtype(y, np.complexfloating): [ 1338s] B = self.__B.astype(y) [ 1338s] else: [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1338s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1338s] with 10 stored elements in Compressed Sparse Column format> [ 1338s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1338s] [14, -3, 0, 0, 0, 0], [ 1338s] [ 0, 7, 0, 0, 0, 0], [ 1338s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1338s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 14 stored elements in Compressed Sparse Column format> [ 1338s] D1 = array([[ 0, 11, 7, 18], [ 1338s] [ 0, 11, 7, 18], [ 1338s] [ 0, 0, 0, 0], [ 1338s] [ 0, 0, 0, 0]], dtype=int8) [ 1338s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1338s] with 6 stored elements in Compressed Sparse Column format> [ 1338s] self = <scipy.sparse.tests.test_base.TestCSCNonCanonical object at 0xffff7fe23250> [ 1338s] x = <class 'numpy.bool_'> [ 1338s] y = <class 'numpy.uint8'> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1338s] ______________ Test64Bit.test_resiliency_random[TestBSR-test_mu] _______________ [ 1338s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97ae77f0> [ 1338s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'>, method_name = 'test_mu' [ 1338s] [ 1338s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1338s] def test_resiliency_random(self, cls, method_name): [ 1338s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1338s] # not making copies of index arrays --- this is not [ 1338s] # necessarily true when we pick the index data type randomly [ 1338s] > self._check_resiliency(cls, method_name, random=True) [ 1338s] [ 1338s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1338s] method_name = 'test_mu' [ 1338s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97ae77f0> [ 1338s] [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1338s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1338s] check(cls, method_name) [ 1338s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff31c3d0d0> [ 1338s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1338s] kw = {'random': True} [ 1338s] method_name = 'test_mu' [ 1338s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97ae77f0> [ 1338s] <decorator-gen-53>:2: in check [ 1338s] ??? [ 1338s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1338s] method_name = 'test_mu' [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1338s] return func(*a, **kw) [ 1338s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_mu') [ 1338s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1338s] downcast_maxval = None [ 1338s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff31c3d040> [ 1338s] kw = {} [ 1338s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1338s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1338s] name = 'get_index_dtype' [ 1338s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff321e8a60> [ 1338s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1338s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1338s] getattr(instance, method_name)() [ 1338s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1338s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff31a77b80> [ 1338s] method_name = 'test_mu' [ 1338s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1338s] [ 1338s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff31a77b80> [ 1338s] [ 1338s] def test_mu(self): [ 1338s] self.__arith_init() [ 1338s] [ 1338s] # basic tests [ 1338s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1338s] self.__A @ self.__B.T) [ 1338s] [ 1338s] for x in supported_dtypes: [ 1338s] A = self.__A.astype(x) [ 1338s] Asp = self.spmatrix(A) [ 1338s] for y in supported_dtypes: [ 1338s] if np.issubdtype(y, np.complexfloating): [ 1338s] B = self.__B.astype(y) [ 1338s] else: [ 1338s] > B = self.__B.real.astype(y) [ 1338s] E RuntimeWarning: invalid value encountered in cast [ 1338s] [ 1338s] A = array([[ True, True, False, True, False, False], [ 1338s] [ True, True, True, False, False, False], [ 1338s] [False, False, True, True, False, False], [ 1338s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1339s] D1 = array([[ 0, 11, 7, 18], [ 1339s] [ 0, 11, 7, 18], [ 1339s] [ 0, 0, 0, 0], [ 1339s] [ 0, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff31a77b80> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1339s] _______________________ TestBSRNonCanonical.test_add_sub _______________________ [ 1339s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestBSRNonCanonical object at 0xffff7fe079d0> [ 1339s] [ 1339s] def test_add_sub(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal( [ 1339s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1339s] ) [ 1339s] [ 1339s] # check conversions [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if not np.issubdtype(y, np.complexfloating): [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 16 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 14 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1339s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1339s] [15, -2, 1, 0, 0, 0], [ 1339s] [ 0, 7, 1, 1, 0, 0], [ 1339s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestBSRNonCanonical object at 0xffff7fe079d0> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1339s] _________________________ TestBSRNonCanonical.test_mu __________________________ [ 1339s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestBSRNonCanonical object at 0xffff7fe07b20> [ 1339s] [ 1339s] def test_mu(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1339s] self.__A @ self.__B.T) [ 1339s] [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if np.issubdtype(y, np.complexfloating): [ 1339s] B = self.__B.astype(y) [ 1339s] else: [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 16 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 14 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1339s] D1 = array([[ 0, 11, 7, 18], [ 1339s] [ 0, 11, 7, 18], [ 1339s] [ 0, 0, 0, 0], [ 1339s] [ 0, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 12 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestBSRNonCanonical object at 0xffff7fe07b20> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1339s] ____________ Test64Bit.test_resiliency_random[TestCOO-test_add_sub] ____________ [ 1339s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a84ac0> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] method_name = 'test_add_sub' [ 1339s] [ 1339s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1339s] def test_resiliency_random(self, cls, method_name): [ 1339s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1339s] # not making copies of index arrays --- this is not [ 1339s] # necessarily true when we pick the index data type randomly [ 1339s] > self._check_resiliency(cls, method_name, random=True) [ 1339s] [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] method_name = 'test_add_sub' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a84ac0> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1339s] check(cls, method_name) [ 1339s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff31bbf790> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] kw = {'random': True} [ 1339s] method_name = 'test_add_sub' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a84ac0> [ 1339s] <decorator-gen-167>:2: in check [ 1339s] ??? [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] method_name = 'test_add_sub' [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1339s] return func(*a, **kw) [ 1339s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_add_sub') [ 1339s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1339s] downcast_maxval = None [ 1339s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff31bbf700> [ 1339s] kw = {} [ 1339s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1339s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1339s] name = 'get_index_dtype' [ 1339s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff31bb9f70> [ 1339s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1339s] getattr(instance, method_name)() [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff31bb2df0> [ 1339s] method_name = 'test_add_sub' [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff31bb2df0> [ 1339s] [ 1339s] def test_add_sub(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal( [ 1339s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1339s] ) [ 1339s] [ 1339s] # check conversions [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if not np.issubdtype(y, np.complexfloating): [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 9 stored elements in COOrdinate format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements in COOrdinate format> [ 1339s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1339s] [15, -2, 1, 0, 0, 0], [ 1339s] [ 0, 7, 1, 1, 0, 0], [ 1339s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 13 stored elements in Compressed Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff31bb2df0> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1339s] ______________ Test64Bit.test_resiliency_random[TestCOO-test_mu] _______________ [ 1339s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97aadd00> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'>, method_name = 'test_mu' [ 1339s] [ 1339s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1339s] def test_resiliency_random(self, cls, method_name): [ 1339s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1339s] # not making copies of index arrays --- this is not [ 1339s] # necessarily true when we pick the index data type randomly [ 1339s] > self._check_resiliency(cls, method_name, random=True) [ 1339s] [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] method_name = 'test_mu' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97aadd00> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1339s] check(cls, method_name) [ 1339s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff31a2b5e0> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] kw = {'random': True} [ 1339s] method_name = 'test_mu' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97aadd00> [ 1339s] <decorator-gen-335>:2: in check [ 1339s] ??? [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] method_name = 'test_mu' [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1339s] return func(*a, **kw) [ 1339s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_mu') [ 1339s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1339s] downcast_maxval = None [ 1339s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff31a2b550> [ 1339s] kw = {} [ 1339s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1339s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1339s] name = 'get_index_dtype' [ 1339s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff30fb28b0> [ 1339s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1339s] getattr(instance, method_name)() [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1339s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff31a2c2b0> [ 1339s] method_name = 'test_mu' [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff31a2c2b0> [ 1339s] [ 1339s] def test_mu(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1339s] self.__A @ self.__B.T) [ 1339s] [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if np.issubdtype(y, np.complexfloating): [ 1339s] B = self.__B.astype(y) [ 1339s] else: [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 9 stored elements in COOrdinate format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements in COOrdinate format> [ 1339s] D1 = array([[ 0, 11, 7, 18], [ 1339s] [ 0, 11, 7, 18], [ 1339s] [ 0, 0, 0, 0], [ 1339s] [ 0, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements in Compressed Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff31a2c2b0> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1339s] ____________ Test64Bit.test_resiliency_random[TestCSC-test_add_sub] ____________ [ 1339s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a57130> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1339s] method_name = 'test_add_sub' [ 1339s] [ 1339s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1339s] def test_resiliency_random(self, cls, method_name): [ 1339s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1339s] # not making copies of index arrays --- this is not [ 1339s] # necessarily true when we pick the index data type randomly [ 1339s] > self._check_resiliency(cls, method_name, random=True) [ 1339s] [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1339s] method_name = 'test_add_sub' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a57130> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1339s] check(cls, method_name) [ 1339s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3191d9d0> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1339s] kw = {'random': True} [ 1339s] method_name = 'test_add_sub' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a57130> [ 1339s] <decorator-gen-459>:2: in check [ 1339s] ??? [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1339s] method_name = 'test_add_sub' [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1339s] return func(*a, **kw) [ 1339s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_add_sub') [ 1339s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1339s] downcast_maxval = None [ 1339s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3191d940> [ 1339s] kw = {} [ 1339s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1339s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1339s] name = 'get_index_dtype' [ 1339s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff319a7c10> [ 1339s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1339s] getattr(instance, method_name)() [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1339s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff31920ee0> [ 1339s] method_name = 'test_add_sub' [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff31920ee0> [ 1339s] [ 1339s] def test_add_sub(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal( [ 1339s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1339s] ) [ 1339s] [ 1339s] # check conversions [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if not np.issubdtype(y, np.complexfloating): [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 9 stored elements in Compressed Sparse Column format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements in Compressed Sparse Column format> [ 1339s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1339s] [15, -2, 1, 0, 0, 0], [ 1339s] [ 0, 7, 1, 1, 0, 0], [ 1339s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 13 stored elements in Compressed Sparse Column format> [ 1339s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff31920ee0> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1339s] _______________________ TestCOONonCanonical.test_add_sub _______________________ [ 1339s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestCOONonCanonical object at 0xffff7fc2b100> [ 1339s] [ 1339s] def test_add_sub(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal( [ 1339s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1339s] ) [ 1339s] [ 1339s] # check conversions [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if not np.issubdtype(y, np.complexfloating): [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 10 stored elements in COOrdinate format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 14 stored elements in COOrdinate format> [ 1339s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1339s] [15, -2, 1, 0, 0, 0], [ 1339s] [ 0, 7, 1, 1, 0, 0], [ 1339s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 13 stored elements in Compressed Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestCOONonCanonical object at 0xffff7fc2b100> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1339s] _________________________ TestCOONonCanonical.test_mu __________________________ [ 1339s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.TestCOONonCanonical object at 0xffff7fc21a30> [ 1339s] [ 1339s] def test_mu(self): [ 1339s] self.__arith_init() [ 1339s] [ 1339s] # basic tests [ 1339s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1339s] self.__A @ self.__B.T) [ 1339s] [ 1339s] for x in supported_dtypes: [ 1339s] A = self.__A.astype(x) [ 1339s] Asp = self.spmatrix(A) [ 1339s] for y in supported_dtypes: [ 1339s] if np.issubdtype(y, np.complexfloating): [ 1339s] B = self.__B.astype(y) [ 1339s] else: [ 1339s] > B = self.__B.real.astype(y) [ 1339s] E RuntimeWarning: invalid value encountered in cast [ 1339s] [ 1339s] A = array([[ True, True, False, True, False, False], [ 1339s] [ True, True, True, False, False, False], [ 1339s] [False, False, True, True, False, False], [ 1339s] [False, False, True, False, False, False]]) [ 1339s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1339s] with 10 stored elements in COOrdinate format> [ 1339s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1339s] [14, -3, 0, 0, 0, 0], [ 1339s] [ 0, 7, 0, 0, 0, 0], [ 1339s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1339s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 14 stored elements in COOrdinate format> [ 1339s] D1 = array([[ 0, 11, 7, 18], [ 1339s] [ 0, 11, 7, 18], [ 1339s] [ 0, 0, 0, 0], [ 1339s] [ 0, 0, 0, 0]], dtype=int8) [ 1339s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1339s] with 6 stored elements in Compressed Sparse Row format> [ 1339s] self = <scipy.sparse.tests.test_base.TestCOONonCanonical object at 0xffff7fc21a30> [ 1339s] x = <class 'numpy.bool_'> [ 1339s] y = <class 'numpy.uint8'> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1339s] ______________ Test64Bit.test_resiliency_random[TestCSC-test_mu] _______________ [ 1339s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1339s] [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a00400> [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'>, method_name = 'test_mu' [ 1339s] [ 1339s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1339s] def test_resiliency_random(self, cls, method_name): [ 1339s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1339s] # not making copies of index arrays --- this is not [ 1339s] # necessarily true when we pick the index data type randomly [ 1339s] > self._check_resiliency(cls, method_name, random=True) [ 1339s] [ 1339s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1339s] method_name = 'test_mu' [ 1339s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a00400> [ 1339s] [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1339s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1339s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1339s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff30d284c0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] kw = {'random': True} [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a00400> [ 1340s] <decorator-gen-633>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] method_name = 'test_mu' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_mu') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff30d28430> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff30d095e0> [ 1340s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff30d2f1f0> [ 1340s] method_name = 'test_mu' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff30d2f1f0> [ 1340s] [ 1340s] def test_mu(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1340s] self.__A @ self.__B.T) [ 1340s] [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if np.issubdtype(y, np.complexfloating): [ 1340s] B = self.__B.astype(y) [ 1340s] else: [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 9 stored elements in Compressed Sparse Column format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in Compressed Sparse Column format> [ 1340s] D1 = array([[ 0, 11, 7, 18], [ 1340s] [ 0, 11, 7, 18], [ 1340s] [ 0, 0, 0, 0], [ 1340s] [ 0, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in Compressed Sparse Column format> [ 1340s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff30d2f1f0> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1340s] ___________ Test64Bit.test_resiliency_limit_10[TestBSR-test_add_sub] ___________ [ 1340s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fc3dcd0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] method_name = 'test_add_sub' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_limit_10(self, cls, method_name): [ 1340s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fc3dcd0> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7b6375e0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] kw = {'maxval_limit': 10} [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fc3dcd0> [ 1340s] <decorator-gen-26>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] method_name = 'test_add_sub' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_add_sub') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7b637550> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7925f8b0> [ 1340s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff791de460> [ 1340s] method_name = 'test_add_sub' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff791de460> [ 1340s] [ 1340s] def test_add_sub(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal( [ 1340s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1340s] ) [ 1340s] [ 1340s] # check conversions [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if not np.issubdtype(y, np.complexfloating): [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1340s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1340s] [15, -2, 1, 0, 0, 0], [ 1340s] [ 0, 7, 1, 1, 0, 0], [ 1340s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1340s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff791de460> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1340s] ____________ Test64Bit.test_resiliency_random[TestCSR-test_add_sub] ____________ [ 1340s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a1f7f0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] method_name = 'test_add_sub' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_random(self, cls, method_name): [ 1340s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1340s] # not making copies of index arrays --- this is not [ 1340s] # necessarily true when we pick the index data type randomly [ 1340s] > self._check_resiliency(cls, method_name, random=True) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a1f7f0> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff30c7e820> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] kw = {'random': True} [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97a1f7f0> [ 1340s] <decorator-gen-755>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] method_name = 'test_add_sub' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_add_sub') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff30c7e790> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff30c60f70> [ 1340s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff30c61f40> [ 1340s] method_name = 'test_add_sub' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff30c61f40> [ 1340s] [ 1340s] def test_add_sub(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal( [ 1340s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1340s] ) [ 1340s] [ 1340s] # check conversions [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if not np.issubdtype(y, np.complexfloating): [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 9 stored elements in Compressed Sparse Row format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in Compressed Sparse Row format> [ 1340s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1340s] [15, -2, 1, 0, 0, 0], [ 1340s] [ 0, 7, 1, 1, 0, 0], [ 1340s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 13 stored elements in Compressed Sparse Row format> [ 1340s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff30c61f40> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1340s] _____________ Test64Bit.test_resiliency_limit_10[TestBSR-test_mu] ______________ [ 1340s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fac6430> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'>, method_name = 'test_mu' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_limit_10(self, cls, method_name): [ 1340s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fac6430> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf790> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] kw = {'maxval_limit': 10} [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fac6430> [ 1340s] <decorator-gen-204>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] method_name = 'test_mu' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_mu') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf5e0> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7bd248b0> [ 1340s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff786e74f0> [ 1340s] method_name = 'test_mu' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff786e74f0> [ 1340s] [ 1340s] def test_mu(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1340s] self.__A @ self.__B.T) [ 1340s] [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if np.issubdtype(y, np.complexfloating): [ 1340s] B = self.__B.astype(y) [ 1340s] else: [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1340s] D1 = array([[ 0, 11, 7, 18], [ 1340s] [ 0, 11, 7, 18], [ 1340s] [ 0, 0, 0, 0], [ 1340s] [ 0, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1340s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff786e74f0> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1340s] ______________ Test64Bit.test_resiliency_random[TestCSR-test_mu] _______________ [ 1340s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979c9d90> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'>, method_name = 'test_mu' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_random(self, cls, method_name): [ 1340s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1340s] # not making copies of index arrays --- this is not [ 1340s] # necessarily true when we pick the index data type randomly [ 1340s] > self._check_resiliency(cls, method_name, random=True) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979c9d90> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff303edca0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] kw = {'random': True} [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979c9d90> [ 1340s] <decorator-gen-935>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] method_name = 'test_mu' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_mu') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff303edc10> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff303d5f70> [ 1340s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff303dd370> [ 1340s] method_name = 'test_mu' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff303dd370> [ 1340s] [ 1340s] def test_mu(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1340s] self.__A @ self.__B.T) [ 1340s] [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if np.issubdtype(y, np.complexfloating): [ 1340s] B = self.__B.astype(y) [ 1340s] else: [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 9 stored elements in Compressed Sparse Row format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in Compressed Sparse Row format> [ 1340s] D1 = array([[ 0, 11, 7, 18], [ 1340s] [ 0, 11, 7, 18], [ 1340s] [ 0, 0, 0, 0], [ 1340s] [ 0, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in Compressed Sparse Row format> [ 1340s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff303dd370> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1340s] ___________ Test64Bit.test_resiliency_limit_10[TestCOO-test_add_sub] ___________ [ 1340s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa61700> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] method_name = 'test_add_sub' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_limit_10(self, cls, method_name): [ 1340s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa61700> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf4c0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] kw = {'maxval_limit': 10} [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa61700> [ 1340s] <decorator-gen-318>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] method_name = 'test_add_sub' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_add_sub') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf0d0> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cf430> [ 1340s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff7b42c220> [ 1340s] method_name = 'test_add_sub' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff7b42c220> [ 1340s] [ 1340s] def test_add_sub(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal( [ 1340s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1340s] ) [ 1340s] [ 1340s] # check conversions [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if not np.issubdtype(y, np.complexfloating): [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 9 stored elements in COOrdinate format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in COOrdinate format> [ 1340s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1340s] [15, -2, 1, 0, 0, 0], [ 1340s] [ 0, 7, 1, 1, 0, 0], [ 1340s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 13 stored elements in Compressed Sparse Row format> [ 1340s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff7b42c220> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1340s] _____________ Test64Bit.test_resiliency_limit_10[TestCOO-test_mu] ______________ [ 1340s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa8b940> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'>, method_name = 'test_mu' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_limit_10(self, cls, method_name): [ 1340s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa8b940> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f6670> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] kw = {'maxval_limit': 10} [ 1340s] method_name = 'test_mu' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa8b940> [ 1340s] <decorator-gen-486>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] method_name = 'test_mu' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_mu') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f65e0> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cfca0> [ 1340s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff7baa4d00> [ 1340s] method_name = 'test_mu' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff7baa4d00> [ 1340s] [ 1340s] def test_mu(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1340s] self.__A @ self.__B.T) [ 1340s] [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if np.issubdtype(y, np.complexfloating): [ 1340s] B = self.__B.astype(y) [ 1340s] else: [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 9 stored elements in COOrdinate format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in COOrdinate format> [ 1340s] D1 = array([[ 0, 11, 7, 18], [ 1340s] [ 0, 11, 7, 18], [ 1340s] [ 0, 0, 0, 0], [ 1340s] [ 0, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 6 stored elements in Compressed Sparse Row format> [ 1340s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff7baa4d00> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1340s] ____________ Test64Bit.test_resiliency_random[TestDIA-test_add_sub] ____________ [ 1340s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979f31c0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1340s] method_name = 'test_add_sub' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_random(self, cls, method_name): [ 1340s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1340s] # not making copies of index arrays --- this is not [ 1340s] # necessarily true when we pick the index data type randomly [ 1340s] > self._check_resiliency(cls, method_name, random=True) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979f31c0> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3028c0d0> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1340s] kw = {'random': True} [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979f31c0> [ 1340s] <decorator-gen-1057>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1340s] method_name = 'test_add_sub' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_add_sub') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3028c040> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff30556670> [ 1340s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff3028a3a0> [ 1340s] method_name = 'test_add_sub' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff3028a3a0> [ 1340s] [ 1340s] def test_add_sub(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1340s] assert_array_equal( [ 1340s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1340s] ) [ 1340s] [ 1340s] # check conversions [ 1340s] for x in supported_dtypes: [ 1340s] A = self.__A.astype(x) [ 1340s] Asp = self.spmatrix(A) [ 1340s] for y in supported_dtypes: [ 1340s] if not np.issubdtype(y, np.complexfloating): [ 1340s] > B = self.__B.real.astype(y) [ 1340s] E RuntimeWarning: invalid value encountered in cast [ 1340s] [ 1340s] A = array([[ True, True, False, True, False, False], [ 1340s] [ True, True, True, False, False, False], [ 1340s] [False, False, True, True, False, False], [ 1340s] [False, False, True, False, False, False]]) [ 1340s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1340s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1340s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1340s] [14, -3, 0, 0, 0, 0], [ 1340s] [ 0, 7, 0, 0, 0, 0], [ 1340s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1340s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1340s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1340s] [15, -2, 1, 0, 0, 0], [ 1340s] [ 0, 7, 1, 1, 0, 0], [ 1340s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1340s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1340s] with 18 stored elements (7 diagonals) in DIAgonal format> [ 1340s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff3028a3a0> [ 1340s] x = <class 'numpy.bool_'> [ 1340s] y = <class 'numpy.uint8'> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1340s] ___________ Test64Bit.test_resiliency_limit_10[TestCSC-test_add_sub] ___________ [ 1340s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa28d30> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] method_name = 'test_add_sub' [ 1340s] [ 1340s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1340s] def test_resiliency_limit_10(self, cls, method_name): [ 1340s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1340s] [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa28d30> [ 1340s] [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1340s] check(cls, method_name) [ 1340s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7bd24a60> [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] kw = {'maxval_limit': 10} [ 1340s] method_name = 'test_add_sub' [ 1340s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7fa28d30> [ 1340s] <decorator-gen-610>:2: in check [ 1340s] ??? [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] method_name = 'test_add_sub' [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1340s] return func(*a, **kw) [ 1340s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_add_sub') [ 1340s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1340s] downcast_maxval = None [ 1340s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7bd249d0> [ 1340s] kw = {} [ 1340s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1340s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1340s] name = 'get_index_dtype' [ 1340s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cf3a0> [ 1340s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1340s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1340s] getattr(instance, method_name)() [ 1340s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1340s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff7893ca30> [ 1340s] method_name = 'test_add_sub' [ 1340s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1340s] [ 1340s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff7893ca30> [ 1340s] [ 1340s] def test_add_sub(self): [ 1340s] self.__arith_init() [ 1340s] [ 1340s] # basic tests [ 1341s] assert_array_equal( [ 1341s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1341s] ) [ 1341s] [ 1341s] # check conversions [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if not np.issubdtype(y, np.complexfloating): [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 9 stored elements in Compressed Sparse Column format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Compressed Sparse Column format> [ 1341s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1341s] [15, -2, 1, 0, 0, 0], [ 1341s] [ 0, 7, 1, 1, 0, 0], [ 1341s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 13 stored elements in Compressed Sparse Column format> [ 1341s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff7893ca30> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1341s] ______________ Test64Bit.test_resiliency_random[TestDIA-test_mu] _______________ [ 1341s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9799f130> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'>, method_name = 'test_mu' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_random(self, cls, method_name): [ 1341s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1341s] # not making copies of index arrays --- this is not [ 1341s] # necessarily true when we pick the index data type randomly [ 1341s] > self._check_resiliency(cls, method_name, random=True) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9799f130> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff318d8790> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1341s] kw = {'random': True} [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9799f130> [ 1341s] <decorator-gen-1215>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1341s] method_name = 'test_mu' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_mu') [ 1341s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1341s] downcast_maxval = None [ 1341s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff318d8700> [ 1341s] kw = {} [ 1341s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1341s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1341s] name = 'get_index_dtype' [ 1341s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff318c2550> [ 1341s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1341s] getattr(instance, method_name)() [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1341s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff318cd670> [ 1341s] method_name = 'test_mu' [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff318cd670> [ 1341s] [ 1341s] def test_mu(self): [ 1341s] self.__arith_init() [ 1341s] [ 1341s] # basic tests [ 1341s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1341s] self.__A @ self.__B.T) [ 1341s] [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if np.issubdtype(y, np.complexfloating): [ 1341s] B = self.__B.astype(y) [ 1341s] else: [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1341s] D1 = array([[ 0, 11, 7, 18], [ 1341s] [ 0, 11, 7, 18], [ 1341s] [ 0, 0, 0, 0], [ 1341s] [ 0, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Compressed Sparse Row format> [ 1341s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff318cd670> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1341s] ____________ Test64Bit.test_resiliency_random[TestDOK-test_add_sub] ____________ [ 1341s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979b9400> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] method_name = 'test_add_sub' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_random(self, cls, method_name): [ 1341s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1341s] # not making copies of index arrays --- this is not [ 1341s] # necessarily true when we pick the index data type randomly [ 1341s] > self._check_resiliency(cls, method_name, random=True) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] method_name = 'test_add_sub' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979b9400> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff318a05e0> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] kw = {'random': True} [ 1341s] method_name = 'test_add_sub' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff979b9400> [ 1341s] <decorator-gen-1335>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] method_name = 'test_add_sub' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_add_sub') [ 1341s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1341s] downcast_maxval = None [ 1341s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff318a0550> [ 1341s] kw = {} [ 1341s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1341s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1341s] name = 'get_index_dtype' [ 1341s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff31888820> [ 1341s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1341s] getattr(instance, method_name)() [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff31899b80> [ 1341s] method_name = 'test_add_sub' [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff31899b80> [ 1341s] [ 1341s] def test_add_sub(self): [ 1341s] self.__arith_init() [ 1341s] [ 1341s] # basic tests [ 1341s] assert_array_equal( [ 1341s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1341s] ) [ 1341s] [ 1341s] # check conversions [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if not np.issubdtype(y, np.complexfloating): [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 9 stored elements in Dictionary Of Keys format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Dictionary Of Keys format> [ 1341s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1341s] [15, -2, 1, 0, 0, 0], [ 1341s] [ 0, 7, 1, 1, 0, 0], [ 1341s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 13 stored elements in Dictionary Of Keys format> [ 1341s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff31899b80> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1341s] ______________ Test64Bit.test_resiliency_random[TestDOK-test_mu] _______________ [ 1341s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97964400> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'>, method_name = 'test_mu' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_random(self, cls, method_name): [ 1341s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1341s] # not making copies of index arrays --- this is not [ 1341s] # necessarily true when we pick the index data type randomly [ 1341s] > self._check_resiliency(cls, method_name, random=True) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97964400> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2feb8430> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] kw = {'random': True} [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97964400> [ 1341s] <decorator-gen-1499>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] method_name = 'test_mu' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_mu') [ 1341s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1341s] downcast_maxval = None [ 1341s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2feb83a0> [ 1341s] kw = {} [ 1341s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1341s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1341s] name = 'get_index_dtype' [ 1341s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2fe93280> [ 1341s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1341s] getattr(instance, method_name)() [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1341s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff2feab280> [ 1341s] method_name = 'test_mu' [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff2feab280> [ 1341s] [ 1341s] def test_mu(self): [ 1341s] self.__arith_init() [ 1341s] [ 1341s] # basic tests [ 1341s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1341s] self.__A @ self.__B.T) [ 1341s] [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if np.issubdtype(y, np.complexfloating): [ 1341s] B = self.__B.astype(y) [ 1341s] else: [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 9 stored elements in Dictionary Of Keys format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Dictionary Of Keys format> [ 1341s] D1 = array([[ 0, 11, 7, 18], [ 1341s] [ 0, 11, 7, 18], [ 1341s] [ 0, 0, 0, 0], [ 1341s] [ 0, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Compressed Sparse Row format> [ 1341s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff2feab280> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1341s] _____________ Test64Bit.test_resiliency_limit_10[TestCSC-test_mu] ______________ [ 1341s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9e1040> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'>, method_name = 'test_mu' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_limit_10(self, cls, method_name): [ 1341s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9e1040> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7b75a1f0> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1341s] kw = {'maxval_limit': 10} [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9e1040> [ 1341s] <decorator-gen-784>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1341s] method_name = 'test_mu' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_mu') [ 1341s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1341s] downcast_maxval = None [ 1341s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf280> [ 1341s] kw = {} [ 1341s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1341s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1341s] name = 'get_index_dtype' [ 1341s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cf790> [ 1341s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1341s] getattr(instance, method_name)() [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1341s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff789ebb80> [ 1341s] method_name = 'test_mu' [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff789ebb80> [ 1341s] [ 1341s] def test_mu(self): [ 1341s] self.__arith_init() [ 1341s] [ 1341s] # basic tests [ 1341s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1341s] self.__A @ self.__B.T) [ 1341s] [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if np.issubdtype(y, np.complexfloating): [ 1341s] B = self.__B.astype(y) [ 1341s] else: [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 9 stored elements in Compressed Sparse Column format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Compressed Sparse Column format> [ 1341s] D1 = array([[ 0, 11, 7, 18], [ 1341s] [ 0, 11, 7, 18], [ 1341s] [ 0, 0, 0, 0], [ 1341s] [ 0, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Compressed Sparse Column format> [ 1341s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff789ebb80> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1341s] ____________ Test64Bit.test_resiliency_random[TestLIL-test_add_sub] ____________ [ 1341s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9797e6d0> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] method_name = 'test_add_sub' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_random(self, cls, method_name): [ 1341s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1341s] # not making copies of index arrays --- this is not [ 1341s] # necessarily true when we pick the index data type randomly [ 1341s] > self._check_resiliency(cls, method_name, random=True) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] method_name = 'test_add_sub' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9797e6d0> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff317f0790> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] kw = {'random': True} [ 1341s] method_name = 'test_add_sub' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9797e6d0> [ 1341s] <decorator-gen-1619>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] method_name = 'test_add_sub' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_add_sub') [ 1341s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1341s] downcast_maxval = None [ 1341s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff317f0700> [ 1341s] kw = {} [ 1341s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1341s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1341s] name = 'get_index_dtype' [ 1341s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2fd72f70> [ 1341s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1341s] getattr(instance, method_name)() [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2fd71e50> [ 1341s] method_name = 'test_add_sub' [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2fd71e50> [ 1341s] [ 1341s] def test_add_sub(self): [ 1341s] self.__arith_init() [ 1341s] [ 1341s] # basic tests [ 1341s] assert_array_equal( [ 1341s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1341s] ) [ 1341s] [ 1341s] # check conversions [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if not np.issubdtype(y, np.complexfloating): [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 9 stored elements in List of Lists format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in List of Lists format> [ 1341s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1341s] [15, -2, 1, 0, 0, 0], [ 1341s] [ 0, 7, 1, 1, 0, 0], [ 1341s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 13 stored elements in Compressed Sparse Row format> [ 1341s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2fd71e50> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1341s] ______________ Test64Bit.test_resiliency_random[TestLIL-test_mu] _______________ [ 1341s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff977aa880> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'>, method_name = 'test_mu' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_random(self, cls, method_name): [ 1341s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1341s] # not making copies of index arrays --- this is not [ 1341s] # necessarily true when we pick the index data type randomly [ 1341s] > self._check_resiliency(cls, method_name, random=True) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff977aa880> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3170c9d0> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] kw = {'random': True} [ 1341s] method_name = 'test_mu' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff977aa880> [ 1341s] <decorator-gen-1789>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] method_name = 'test_mu' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_mu') [ 1341s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1341s] downcast_maxval = None [ 1341s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3170c940> [ 1341s] kw = {} [ 1341s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1341s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1341s] name = 'get_index_dtype' [ 1341s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff30739e50> [ 1341s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1341s] getattr(instance, method_name)() [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1341s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff31721370> [ 1341s] method_name = 'test_mu' [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff31721370> [ 1341s] [ 1341s] def test_mu(self): [ 1341s] self.__arith_init() [ 1341s] [ 1341s] # basic tests [ 1341s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1341s] self.__A @ self.__B.T) [ 1341s] [ 1341s] for x in supported_dtypes: [ 1341s] A = self.__A.astype(x) [ 1341s] Asp = self.spmatrix(A) [ 1341s] for y in supported_dtypes: [ 1341s] if np.issubdtype(y, np.complexfloating): [ 1341s] B = self.__B.astype(y) [ 1341s] else: [ 1341s] > B = self.__B.real.astype(y) [ 1341s] E RuntimeWarning: invalid value encountered in cast [ 1341s] [ 1341s] A = array([[ True, True, False, True, False, False], [ 1341s] [ True, True, True, False, False, False], [ 1341s] [False, False, True, True, False, False], [ 1341s] [False, False, True, False, False, False]]) [ 1341s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1341s] with 9 stored elements in List of Lists format> [ 1341s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1341s] [14, -3, 0, 0, 0, 0], [ 1341s] [ 0, 7, 0, 0, 0, 0], [ 1341s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1341s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in List of Lists format> [ 1341s] D1 = array([[ 0, 11, 7, 18], [ 1341s] [ 0, 11, 7, 18], [ 1341s] [ 0, 0, 0, 0], [ 1341s] [ 0, 0, 0, 0]], dtype=int8) [ 1341s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1341s] with 6 stored elements in Compressed Sparse Row format> [ 1341s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff31721370> [ 1341s] x = <class 'numpy.bool_'> [ 1341s] y = <class 'numpy.uint8'> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1341s] ___________ Test64Bit.test_resiliency_limit_10[TestCSR-test_add_sub] ___________ [ 1341s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1341s] [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9fd430> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1341s] method_name = 'test_add_sub' [ 1341s] [ 1341s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1341s] def test_resiliency_limit_10(self, cls, method_name): [ 1341s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1341s] [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1341s] method_name = 'test_add_sub' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9fd430> [ 1341s] [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1341s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1341s] check(cls, method_name) [ 1341s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788d2550> [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1341s] kw = {'maxval_limit': 10} [ 1341s] method_name = 'test_add_sub' [ 1341s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9fd430> [ 1341s] <decorator-gen-906>:2: in check [ 1341s] ??? [ 1341s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1341s] method_name = 'test_add_sub' [ 1341s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1341s] return func(*a, **kw) [ 1341s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_add_sub') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788d2040> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cfee0> [ 1342s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff787c19a0> [ 1342s] method_name = 'test_add_sub' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff787c19a0> [ 1342s] [ 1342s] def test_add_sub(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal( [ 1342s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1342s] ) [ 1342s] [ 1342s] # check conversions [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if not np.issubdtype(y, np.complexfloating): [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 9 stored elements in Compressed Sparse Row format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements in Compressed Sparse Row format> [ 1342s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1342s] [15, -2, 1, 0, 0, 0], [ 1342s] [ 0, 7, 1, 1, 0, 0], [ 1342s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 13 stored elements in Compressed Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff787c19a0> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1342s] _____________ Test64Bit.test_resiliency_limit_10[TestCSR-test_mu] ______________ [ 1342s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9a79d0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'>, method_name = 'test_mu' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_limit_10(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9a79d0> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7b624ee0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1342s] kw = {'maxval_limit': 10} [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9a79d0> [ 1342s] <decorator-gen-1086>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1342s] method_name = 'test_mu' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_mu') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788d2d30> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cf700> [ 1342s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff7b429be0> [ 1342s] method_name = 'test_mu' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff7b429be0> [ 1342s] [ 1342s] def test_mu(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1342s] self.__A @ self.__B.T) [ 1342s] [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if np.issubdtype(y, np.complexfloating): [ 1342s] B = self.__B.astype(y) [ 1342s] else: [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 9 stored elements in Compressed Sparse Row format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements in Compressed Sparse Row format> [ 1342s] D1 = array([[ 0, 11, 7, 18], [ 1342s] [ 0, 11, 7, 18], [ 1342s] [ 0, 0, 0, 0], [ 1342s] [ 0, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements in Compressed Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff7b429be0> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1342s] ____________ Test64Bit.test_resiliency_all_32[TestBSR-test_add_sub] ____________ [ 1342s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97746a90> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_add_sub' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_all_32(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_add_sub' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97746a90> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3035ed30> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1342s] method_name = 'test_add_sub' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97746a90> [ 1342s] <decorator-gen-1909>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_add_sub' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_add_sub') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff3035eca0> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2fb1daf0> [ 1342s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff3034d8b0> [ 1342s] method_name = 'test_add_sub' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff3034d8b0> [ 1342s] [ 1342s] def test_add_sub(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal( [ 1342s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1342s] ) [ 1342s] [ 1342s] # check conversions [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if not np.issubdtype(y, np.complexfloating): [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1342s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1342s] [15, -2, 1, 0, 0, 0], [ 1342s] [ 0, 7, 1, 1, 0, 0], [ 1342s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff3034d8b0> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1342s] ______________ Test64Bit.test_resiliency_all_32[TestBSR-test_mu] _______________ [ 1342s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9762abe0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'>, method_name = 'test_mu' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_all_32(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9762abe0> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff314c4040> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9762abe0> [ 1342s] <decorator-gen-2087>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_mu' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_mu') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff314f9f70> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff31651f70> [ 1342s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff31509b20> [ 1342s] method_name = 'test_mu' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff31509b20> [ 1342s] [ 1342s] def test_mu(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1342s] self.__A @ self.__B.T) [ 1342s] [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if np.issubdtype(y, np.complexfloating): [ 1342s] B = self.__B.astype(y) [ 1342s] else: [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1342s] D1 = array([[ 0, 11, 7, 18], [ 1342s] [ 0, 11, 7, 18], [ 1342s] [ 0, 0, 0, 0], [ 1342s] [ 0, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff31509b20> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1342s] ___________ Test64Bit.test_resiliency_limit_10[TestDIA-test_add_sub] ___________ [ 1342s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9c3dc0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] method_name = 'test_add_sub' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_limit_10(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] method_name = 'test_add_sub' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9c3dc0> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f6dc0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] kw = {'maxval_limit': 10} [ 1342s] method_name = 'test_add_sub' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9c3dc0> [ 1342s] <decorator-gen-1208>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] method_name = 'test_add_sub' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_add_sub') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f6e50> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7b6375e0> [ 1342s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff788681c0> [ 1342s] method_name = 'test_add_sub' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff788681c0> [ 1342s] [ 1342s] def test_add_sub(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal( [ 1342s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1342s] ) [ 1342s] [ 1342s] # check conversions [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if not np.issubdtype(y, np.complexfloating): [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1342s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1342s] [15, -2, 1, 0, 0, 0], [ 1342s] [ 0, 7, 1, 1, 0, 0], [ 1342s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 18 stored elements (7 diagonals) in DIAgonal format> [ 1342s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff788681c0> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1342s] ____________ Test64Bit.test_resiliency_all_32[TestCOO-test_add_sub] ____________ [ 1342s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975c4eb0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] method_name = 'test_add_sub' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_all_32(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] method_name = 'test_add_sub' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975c4eb0> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff315ca700> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1342s] method_name = 'test_add_sub' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975c4eb0> [ 1342s] <decorator-gen-2201>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] method_name = 'test_add_sub' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_add_sub') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff315ca670> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff315fb8b0> [ 1342s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff315ebc70> [ 1342s] method_name = 'test_add_sub' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff315ebc70> [ 1342s] [ 1342s] def test_add_sub(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal( [ 1342s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1342s] ) [ 1342s] [ 1342s] # check conversions [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if not np.issubdtype(y, np.complexfloating): [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 9 stored elements in COOrdinate format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements in COOrdinate format> [ 1342s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1342s] [15, -2, 1, 0, 0, 0], [ 1342s] [ 0, 7, 1, 1, 0, 0], [ 1342s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 13 stored elements in Compressed Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff315ebc70> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1342s] ______________ Test64Bit.test_resiliency_all_32[TestCOO-test_mu] _______________ [ 1342s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975fd130> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'>, method_name = 'test_mu' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_all_32(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975fd130> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f77e940> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975fd130> [ 1342s] <decorator-gen-2369>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] method_name = 'test_mu' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_mu') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f77e8b0> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2f76eee0> [ 1342s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff2f776cd0> [ 1342s] method_name = 'test_mu' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff2f776cd0> [ 1342s] [ 1342s] def test_mu(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1342s] self.__A @ self.__B.T) [ 1342s] [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if np.issubdtype(y, np.complexfloating): [ 1342s] B = self.__B.astype(y) [ 1342s] else: [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 9 stored elements in COOrdinate format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements in COOrdinate format> [ 1342s] D1 = array([[ 0, 11, 7, 18], [ 1342s] [ 0, 11, 7, 18], [ 1342s] [ 0, 0, 0, 0], [ 1342s] [ 0, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements in Compressed Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff2f776cd0> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1342s] ______________ Test64Bit.test_resiliency_all_64[TestBSR-test_mu] _______________ [ 1342s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7321cfa0> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'>, method_name = 'test_mu' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_all_64(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7321cfa0> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff6531b670> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7321cfa0> [ 1342s] <decorator-gen-88>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] method_name = 'test_mu' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_mu') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff6531bc10> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff6f056700> [ 1342s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff66c52f70> [ 1342s] method_name = 'test_mu' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff66c52f70> [ 1342s] [ 1342s] def test_mu(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1342s] self.__A @ self.__B.T) [ 1342s] [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if np.issubdtype(y, np.complexfloating): [ 1342s] B = self.__B.astype(y) [ 1342s] else: [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1342s] D1 = array([[ 0, 11, 7, 18], [ 1342s] [ 0, 11, 7, 18], [ 1342s] [ 0, 0, 0, 0], [ 1342s] [ 0, 0, 0, 0]], dtype=int8) [ 1342s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 6 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1342s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff66c52f70> [ 1342s] x = <class 'numpy.bool_'> [ 1342s] y = <class 'numpy.uint8'> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1342s] _____________ Test64Bit.test_resiliency_limit_10[TestDIA-test_mu] ______________ [ 1342s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f96ed30> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'>, method_name = 'test_mu' [ 1342s] [ 1342s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1342s] def test_resiliency_limit_10(self, cls, method_name): [ 1342s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1342s] [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f96ed30> [ 1342s] [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1342s] check(cls, method_name) [ 1342s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788ada60> [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] kw = {'maxval_limit': 10} [ 1342s] method_name = 'test_mu' [ 1342s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f96ed30> [ 1342s] <decorator-gen-1366>:2: in check [ 1342s] ??? [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] method_name = 'test_mu' [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1342s] return func(*a, **kw) [ 1342s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_mu') [ 1342s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1342s] downcast_maxval = None [ 1342s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788ad1f0> [ 1342s] kw = {} [ 1342s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1342s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1342s] name = 'get_index_dtype' [ 1342s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff788ad820> [ 1342s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1342s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1342s] getattr(instance, method_name)() [ 1342s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1342s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff784415b0> [ 1342s] method_name = 'test_mu' [ 1342s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1342s] [ 1342s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff784415b0> [ 1342s] [ 1342s] def test_mu(self): [ 1342s] self.__arith_init() [ 1342s] [ 1342s] # basic tests [ 1342s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1342s] self.__A @ self.__B.T) [ 1342s] [ 1342s] for x in supported_dtypes: [ 1342s] A = self.__A.astype(x) [ 1342s] Asp = self.spmatrix(A) [ 1342s] for y in supported_dtypes: [ 1342s] if np.issubdtype(y, np.complexfloating): [ 1342s] B = self.__B.astype(y) [ 1342s] else: [ 1342s] > B = self.__B.real.astype(y) [ 1342s] E RuntimeWarning: invalid value encountered in cast [ 1342s] [ 1342s] A = array([[ True, True, False, True, False, False], [ 1342s] [ True, True, True, False, False, False], [ 1342s] [False, False, True, True, False, False], [ 1342s] [False, False, True, False, False, False]]) [ 1342s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1342s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1342s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1342s] [14, -3, 0, 0, 0, 0], [ 1342s] [ 0, 7, 0, 0, 0, 0], [ 1342s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1342s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1342s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1343s] D1 = array([[ 0, 11, 7, 18], [ 1343s] [ 0, 11, 7, 18], [ 1343s] [ 0, 0, 0, 0], [ 1343s] [ 0, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Compressed Sparse Row format> [ 1343s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff784415b0> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1343s] ____________ Test64Bit.test_resiliency_all_64[TestCOO-test_add_sub] ____________ [ 1343s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731c12b0> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] method_name = 'test_add_sub' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_all_64(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731c12b0> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80ca0> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731c12b0> [ 1343s] <decorator-gen-202>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] method_name = 'test_add_sub' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_add_sub') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80940> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff67d80550> [ 1343s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff67dbdd00> [ 1343s] method_name = 'test_add_sub' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff67dbdd00> [ 1343s] [ 1343s] def test_add_sub(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal( [ 1343s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1343s] ) [ 1343s] [ 1343s] # check conversions [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if not np.issubdtype(y, np.complexfloating): [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1343s] A = array([[ True, True, False, True, False, False], [ 1343s] [ True, True, True, False, False, False], [ 1343s] [False, False, True, True, False, False], [ 1343s] [False, False, True, False, False, False]]) [ 1343s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1343s] with 9 stored elements in COOrdinate format> [ 1343s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1343s] [14, -3, 0, 0, 0, 0], [ 1343s] [ 0, 7, 0, 0, 0, 0], [ 1343s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1343s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in COOrdinate format> [ 1343s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1343s] [15, -2, 1, 0, 0, 0], [ 1343s] [ 0, 7, 1, 1, 0, 0], [ 1343s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 13 stored elements in Compressed Sparse Row format> [ 1343s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff67dbdd00> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1343s] ____________ Test64Bit.test_resiliency_all_32[TestCSC-test_add_sub] ____________ [ 1343s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97598520> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_add_sub' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_all_32(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97598520> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f56fd30> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97598520> [ 1343s] <decorator-gen-2493>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_add_sub' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_add_sub') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f56fca0> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff31327790> [ 1343s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff2f569ac0> [ 1343s] method_name = 'test_add_sub' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff2f569ac0> [ 1343s] [ 1343s] def test_add_sub(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal( [ 1343s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1343s] ) [ 1343s] [ 1343s] # check conversions [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if not np.issubdtype(y, np.complexfloating): [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1343s] A = array([[ True, True, False, True, False, False], [ 1343s] [ True, True, True, False, False, False], [ 1343s] [False, False, True, True, False, False], [ 1343s] [False, False, True, False, False, False]]) [ 1343s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1343s] with 9 stored elements in Compressed Sparse Column format> [ 1343s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1343s] [14, -3, 0, 0, 0, 0], [ 1343s] [ 0, 7, 0, 0, 0, 0], [ 1343s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1343s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Compressed Sparse Column format> [ 1343s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1343s] [15, -2, 1, 0, 0, 0], [ 1343s] [ 0, 7, 1, 1, 0, 0], [ 1343s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 13 stored elements in Compressed Sparse Column format> [ 1343s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff2f569ac0> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1343s] ___________ Test64Bit.test_resiliency_limit_10[TestDOK-test_add_sub] ___________ [ 1343s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f999040> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] method_name = 'test_add_sub' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_limit_10(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f999040> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f6040> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] kw = {'maxval_limit': 10} [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f999040> [ 1343s] <decorator-gen-1486>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] method_name = 'test_add_sub' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_add_sub') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f60d0> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff788d2dc0> [ 1343s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff780e2430> [ 1343s] method_name = 'test_add_sub' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff780e2430> [ 1343s] [ 1343s] def test_add_sub(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal( [ 1343s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1343s] ) [ 1343s] [ 1343s] # check conversions [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if not np.issubdtype(y, np.complexfloating): [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1343s] A = array([[ True, True, False, True, False, False], [ 1343s] [ True, True, True, False, False, False], [ 1343s] [False, False, True, True, False, False], [ 1343s] [False, False, True, False, False, False]]) [ 1343s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1343s] with 9 stored elements in Dictionary Of Keys format> [ 1343s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1343s] [14, -3, 0, 0, 0, 0], [ 1343s] [ 0, 7, 0, 0, 0, 0], [ 1343s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1343s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Dictionary Of Keys format> [ 1343s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1343s] [15, -2, 1, 0, 0, 0], [ 1343s] [ 0, 7, 1, 1, 0, 0], [ 1343s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 13 stored elements in Dictionary Of Keys format> [ 1343s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff780e2430> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1343s] ______________ Test64Bit.test_resiliency_all_64[TestCOO-test_mu] _______________ [ 1343s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731ec4f0> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'>, method_name = 'test_mu' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_all_64(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] method_name = 'test_mu' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731ec4f0> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d795e0> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1343s] method_name = 'test_mu' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731ec4f0> [ 1343s] <decorator-gen-370>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] method_name = 'test_mu' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_mu') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d79550> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff66c60d30> [ 1343s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff731de1c0> [ 1343s] method_name = 'test_mu' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff731de1c0> [ 1343s] [ 1343s] def test_mu(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1343s] self.__A @ self.__B.T) [ 1343s] [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if np.issubdtype(y, np.complexfloating): [ 1343s] B = self.__B.astype(y) [ 1343s] else: [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1343s] A = array([[ True, True, False, True, False, False], [ 1343s] [ True, True, True, False, False, False], [ 1343s] [False, False, True, True, False, False], [ 1343s] [False, False, True, False, False, False]]) [ 1343s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1343s] with 9 stored elements in COOrdinate format> [ 1343s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1343s] [14, -3, 0, 0, 0, 0], [ 1343s] [ 0, 7, 0, 0, 0, 0], [ 1343s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1343s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in COOrdinate format> [ 1343s] D1 = array([[ 0, 11, 7, 18], [ 1343s] [ 0, 11, 7, 18], [ 1343s] [ 0, 0, 0, 0], [ 1343s] [ 0, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Compressed Sparse Row format> [ 1343s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff731de1c0> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1343s] ______________ Test64Bit.test_resiliency_all_32[TestCSC-test_mu] _______________ [ 1343s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975447f0> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'>, method_name = 'test_mu' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_all_32(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_mu' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975447f0> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f444790> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1343s] method_name = 'test_mu' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975447f0> [ 1343s] <decorator-gen-2667>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_mu' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_mu') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f444700> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2fcf5d30> [ 1343s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff2fcff610> [ 1343s] method_name = 'test_mu' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff2fcff610> [ 1343s] [ 1343s] def test_mu(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1343s] self.__A @ self.__B.T) [ 1343s] [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if np.issubdtype(y, np.complexfloating): [ 1343s] B = self.__B.astype(y) [ 1343s] else: [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1343s] A = array([[ True, True, False, True, False, False], [ 1343s] [ True, True, True, False, False, False], [ 1343s] [False, False, True, True, False, False], [ 1343s] [False, False, True, False, False, False]]) [ 1343s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1343s] with 9 stored elements in Compressed Sparse Column format> [ 1343s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1343s] [14, -3, 0, 0, 0, 0], [ 1343s] [ 0, 7, 0, 0, 0, 0], [ 1343s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1343s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Compressed Sparse Column format> [ 1343s] D1 = array([[ 0, 11, 7, 18], [ 1343s] [ 0, 11, 7, 18], [ 1343s] [ 0, 0, 0, 0], [ 1343s] [ 0, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Compressed Sparse Column format> [ 1343s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff2fcff610> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1343s] ____________ Test64Bit.test_resiliency_all_64[TestCSC-test_add_sub] ____________ [ 1343s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731898e0> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_add_sub' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_all_64(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731898e0> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80b80> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1343s] method_name = 'test_add_sub' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff731898e0> [ 1343s] <decorator-gen-494>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] method_name = 'test_add_sub' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_add_sub') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d800d0> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff65b2fc10> [ 1343s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff67d69280> [ 1343s] method_name = 'test_add_sub' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff67d69280> [ 1343s] [ 1343s] def test_add_sub(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal( [ 1343s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1343s] ) [ 1343s] [ 1343s] # check conversions [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if not np.issubdtype(y, np.complexfloating): [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1343s] A = array([[ True, True, False, True, False, False], [ 1343s] [ True, True, True, False, False, False], [ 1343s] [False, False, True, True, False, False], [ 1343s] [False, False, True, False, False, False]]) [ 1343s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1343s] with 9 stored elements in Compressed Sparse Column format> [ 1343s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1343s] [14, -3, 0, 0, 0, 0], [ 1343s] [ 0, 7, 0, 0, 0, 0], [ 1343s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1343s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 6 stored elements in Compressed Sparse Column format> [ 1343s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1343s] [15, -2, 1, 0, 0, 0], [ 1343s] [ 0, 7, 1, 1, 0, 0], [ 1343s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1343s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1343s] with 13 stored elements in Compressed Sparse Column format> [ 1343s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff67d69280> [ 1343s] x = <class 'numpy.bool_'> [ 1343s] y = <class 'numpy.uint8'> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1343s] _____________ Test64Bit.test_resiliency_limit_10[TestDOK-test_mu] ______________ [ 1343s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f943040> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'>, method_name = 'test_mu' [ 1343s] [ 1343s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1343s] def test_resiliency_limit_10(self, cls, method_name): [ 1343s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1343s] [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] method_name = 'test_mu' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f943040> [ 1343s] [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1343s] check(cls, method_name) [ 1343s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788adf70> [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] kw = {'maxval_limit': 10} [ 1343s] method_name = 'test_mu' [ 1343s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f943040> [ 1343s] <decorator-gen-1650>:2: in check [ 1343s] ??? [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] method_name = 'test_mu' [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1343s] return func(*a, **kw) [ 1343s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_mu') [ 1343s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1343s] downcast_maxval = None [ 1343s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff788ad8b0> [ 1343s] kw = {} [ 1343s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1343s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1343s] name = 'get_index_dtype' [ 1343s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7bd249d0> [ 1343s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1343s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1343s] getattr(instance, method_name)() [ 1343s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1343s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff7877eb80> [ 1343s] method_name = 'test_mu' [ 1343s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1343s] [ 1343s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff7877eb80> [ 1343s] [ 1343s] def test_mu(self): [ 1343s] self.__arith_init() [ 1343s] [ 1343s] # basic tests [ 1343s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1343s] self.__A @ self.__B.T) [ 1343s] [ 1343s] for x in supported_dtypes: [ 1343s] A = self.__A.astype(x) [ 1343s] Asp = self.spmatrix(A) [ 1343s] for y in supported_dtypes: [ 1343s] if np.issubdtype(y, np.complexfloating): [ 1343s] B = self.__B.astype(y) [ 1343s] else: [ 1343s] > B = self.__B.real.astype(y) [ 1343s] E RuntimeWarning: invalid value encountered in cast [ 1343s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in Dictionary Of Keys format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Dictionary Of Keys format> [ 1344s] D1 = array([[ 0, 11, 7, 18], [ 1344s] [ 0, 11, 7, 18], [ 1344s] [ 0, 0, 0, 0], [ 1344s] [ 0, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff7877eb80> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1344s] ______________ Test64Bit.test_resiliency_all_64[TestCSC-test_mu] _______________ [ 1344s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff73135bb0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'>, method_name = 'test_mu' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_64(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff73135bb0> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff654c9820> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff73135bb0> [ 1344s] <decorator-gen-668>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1344s] method_name = 'test_mu' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_mu') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff654c9d30> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff6f056310> [ 1344s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff67e895b0> [ 1344s] method_name = 'test_mu' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff67e895b0> [ 1344s] [ 1344s] def test_mu(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1344s] self.__A @ self.__B.T) [ 1344s] [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if np.issubdtype(y, np.complexfloating): [ 1344s] B = self.__B.astype(y) [ 1344s] else: [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in Compressed Sparse Column format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Column format> [ 1344s] D1 = array([[ 0, 11, 7, 18], [ 1344s] [ 0, 11, 7, 18], [ 1344s] [ 0, 0, 0, 0], [ 1344s] [ 0, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Column format> [ 1344s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff67e895b0> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1344s] ____________ Test64Bit.test_resiliency_all_32[TestCSR-test_add_sub] ____________ [ 1344s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9755fbe0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_add_sub' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_32(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9755fbe0> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f315af0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9755fbe0> [ 1344s] <decorator-gen-2789>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_add_sub' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_add_sub') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f315a60> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2fbed5e0> [ 1344s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff2f305910> [ 1344s] method_name = 'test_add_sub' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff2f305910> [ 1344s] [ 1344s] def test_add_sub(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal( [ 1344s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1344s] ) [ 1344s] [ 1344s] # check conversions [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if not np.issubdtype(y, np.complexfloating): [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in Compressed Sparse Row format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1344s] [15, -2, 1, 0, 0, 0], [ 1344s] [ 0, 7, 1, 1, 0, 0], [ 1344s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 13 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff2f305910> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1344s] ______________ Test64Bit.test_resiliency_all_32[TestCSR-test_mu] _______________ [ 1344s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975171c0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'>, method_name = 'test_mu' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_32(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975171c0> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f342f70> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975171c0> [ 1344s] <decorator-gen-2969>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_mu' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_mu') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f342ee0> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2f257310> [ 1344s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff2f34ae20> [ 1344s] method_name = 'test_mu' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff2f34ae20> [ 1344s] [ 1344s] def test_mu(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1344s] self.__A @ self.__B.T) [ 1344s] [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if np.issubdtype(y, np.complexfloating): [ 1344s] B = self.__B.astype(y) [ 1344s] else: [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in Compressed Sparse Row format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] D1 = array([[ 0, 11, 7, 18], [ 1344s] [ 0, 11, 7, 18], [ 1344s] [ 0, 0, 0, 0], [ 1344s] [ 0, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff2f34ae20> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1344s] ____________ Test64Bit.test_resiliency_all_64[TestCSR-test_add_sub] ____________ [ 1344s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7314ffa0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_add_sub' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_64(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7314ffa0> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff6531baf0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7314ffa0> [ 1344s] <decorator-gen-790>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_add_sub' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_add_sub') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff6f9f95e0> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff65986ca0> [ 1344s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff66c4fa30> [ 1344s] method_name = 'test_add_sub' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff66c4fa30> [ 1344s] [ 1344s] def test_add_sub(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal( [ 1344s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1344s] ) [ 1344s] [ 1344s] # check conversions [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if not np.issubdtype(y, np.complexfloating): [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in Compressed Sparse Row format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1344s] [15, -2, 1, 0, 0, 0], [ 1344s] [ 0, 7, 1, 1, 0, 0], [ 1344s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 13 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff66c4fa30> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1344s] ____________ Test64Bit.test_resiliency_all_32[TestDIA-test_add_sub] ____________ [ 1344s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975335b0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] method_name = 'test_add_sub' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_32(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975335b0> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f123310> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff975335b0> [ 1344s] <decorator-gen-3091>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] method_name = 'test_add_sub' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_add_sub') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2f123280> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff31434940> [ 1344s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff2f1199d0> [ 1344s] method_name = 'test_add_sub' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff2f1199d0> [ 1344s] [ 1344s] def test_add_sub(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal( [ 1344s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1344s] ) [ 1344s] [ 1344s] # check conversions [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if not np.issubdtype(y, np.complexfloating): [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1344s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1344s] [15, -2, 1, 0, 0, 0], [ 1344s] [ 0, 7, 1, 1, 0, 0], [ 1344s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 18 stored elements (7 diagonals) in DIAgonal format> [ 1344s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff2f1199d0> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1344s] ______________ Test64Bit.test_resiliency_all_64[TestCSR-test_mu] _______________ [ 1344s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730c8580> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'>, method_name = 'test_mu' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_64(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730c8580> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d79dc0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730c8580> [ 1344s] <decorator-gen-970>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] method_name = 'test_mu' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_mu') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d79670> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff65986af0> [ 1344s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff645c09d0> [ 1344s] method_name = 'test_mu' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff645c09d0> [ 1344s] [ 1344s] def test_mu(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1344s] self.__A @ self.__B.T) [ 1344s] [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if np.issubdtype(y, np.complexfloating): [ 1344s] B = self.__B.astype(y) [ 1344s] else: [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in Compressed Sparse Row format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] D1 = array([[ 0, 11, 7, 18], [ 1344s] [ 0, 11, 7, 18], [ 1344s] [ 0, 0, 0, 0], [ 1344s] [ 0, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff645c09d0> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1344s] ______________ Test64Bit.test_resiliency_all_32[TestDIA-test_mu] _______________ [ 1344s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974dd520> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'>, method_name = 'test_mu' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_32(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974dd520> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff311d6940> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1344s] method_name = 'test_mu' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974dd520> [ 1344s] <decorator-gen-3249>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] method_name = 'test_mu' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_mu') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff311d68b0> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff311c2dc0> [ 1344s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff311dceb0> [ 1344s] method_name = 'test_mu' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff311dceb0> [ 1344s] [ 1344s] def test_mu(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1344s] self.__A @ self.__B.T) [ 1344s] [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if np.issubdtype(y, np.complexfloating): [ 1344s] B = self.__B.astype(y) [ 1344s] else: [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1344s] D1 = array([[ 0, 11, 7, 18], [ 1344s] [ 0, 11, 7, 18], [ 1344s] [ 0, 0, 0, 0], [ 1344s] [ 0, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff311dceb0> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1344s] ___________ Test64Bit.test_resiliency_limit_10[TestLIL-test_add_sub] ___________ [ 1344s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f95e310> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1344s] method_name = 'test_add_sub' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_limit_10(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f95e310> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff7bd24d30> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1344s] kw = {'maxval_limit': 10} [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f95e310> [ 1344s] <decorator-gen-1770>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1344s] method_name = 'test_add_sub' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1344s] return func(*a, **kw) [ 1344s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_add_sub') [ 1344s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1344s] downcast_maxval = None [ 1344s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff789f69d0> [ 1344s] kw = {} [ 1344s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1344s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1344s] name = 'get_index_dtype' [ 1344s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cf670> [ 1344s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1344s] getattr(instance, method_name)() [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1344s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff7f951cd0> [ 1344s] method_name = 'test_add_sub' [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff7f951cd0> [ 1344s] [ 1344s] def test_add_sub(self): [ 1344s] self.__arith_init() [ 1344s] [ 1344s] # basic tests [ 1344s] assert_array_equal( [ 1344s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1344s] ) [ 1344s] [ 1344s] # check conversions [ 1344s] for x in supported_dtypes: [ 1344s] A = self.__A.astype(x) [ 1344s] Asp = self.spmatrix(A) [ 1344s] for y in supported_dtypes: [ 1344s] if not np.issubdtype(y, np.complexfloating): [ 1344s] > B = self.__B.real.astype(y) [ 1344s] E RuntimeWarning: invalid value encountered in cast [ 1344s] [ 1344s] A = array([[ True, True, False, True, False, False], [ 1344s] [ True, True, True, False, False, False], [ 1344s] [False, False, True, True, False, False], [ 1344s] [False, False, True, False, False, False]]) [ 1344s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1344s] with 9 stored elements in List of Lists format> [ 1344s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1344s] [14, -3, 0, 0, 0, 0], [ 1344s] [ 0, 7, 0, 0, 0, 0], [ 1344s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1344s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 6 stored elements in List of Lists format> [ 1344s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1344s] [15, -2, 1, 0, 0, 0], [ 1344s] [ 0, 7, 1, 1, 0, 0], [ 1344s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1344s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1344s] with 13 stored elements in Compressed Sparse Row format> [ 1344s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff7f951cd0> [ 1344s] x = <class 'numpy.bool_'> [ 1344s] y = <class 'numpy.uint8'> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1344s] ____________ Test64Bit.test_resiliency_all_32[TestDOK-test_add_sub] ____________ [ 1344s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1344s] [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974f87f0> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1344s] method_name = 'test_add_sub' [ 1344s] [ 1344s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1344s] def test_resiliency_all_32(self, cls, method_name): [ 1344s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1344s] [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974f87f0> [ 1344s] [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1344s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1344s] check(cls, method_name) [ 1344s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff312e0790> [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1344s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1344s] method_name = 'test_add_sub' [ 1344s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974f87f0> [ 1344s] <decorator-gen-3369>:2: in check [ 1344s] ??? [ 1344s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1344s] method_name = 'test_add_sub' [ 1344s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_add_sub') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff312e0700> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2eeb6700> [ 1345s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff312e5af0> [ 1345s] method_name = 'test_add_sub' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff312e5af0> [ 1345s] [ 1345s] def test_add_sub(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal( [ 1345s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1345s] ) [ 1345s] [ 1345s] # check conversions [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if not np.issubdtype(y, np.complexfloating): [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 9 stored elements in Dictionary Of Keys format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Dictionary Of Keys format> [ 1345s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1345s] [15, -2, 1, 0, 0, 0], [ 1345s] [ 0, 7, 1, 1, 0, 0], [ 1345s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 13 stored elements in Dictionary Of Keys format> [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff312e5af0> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1345s] ____________ Test64Bit.test_resiliency_all_64[TestDIA-test_add_sub] ____________ [ 1345s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730e2970> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] method_name = 'test_add_sub' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_all_64(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730e2970> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff654c9040> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730e2970> [ 1345s] <decorator-gen-1092>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] method_name = 'test_add_sub' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_add_sub') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff654c9790> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff6531b670> [ 1345s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65976430> [ 1345s] method_name = 'test_add_sub' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65976430> [ 1345s] [ 1345s] def test_add_sub(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal( [ 1345s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1345s] ) [ 1345s] [ 1345s] # check conversions [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if not np.issubdtype(y, np.complexfloating): [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1345s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1345s] [15, -2, 1, 0, 0, 0], [ 1345s] [ 0, 7, 1, 1, 0, 0], [ 1345s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 18 stored elements (7 diagonals) in DIAgonal format> [ 1345s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65976430> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1345s] _____________ Test64Bit.test_resiliency_limit_10[TestLIL-test_mu] ______________ [ 1345s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9084c0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'>, method_name = 'test_mu' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_limit_10(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, maxval_limit=10) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9084c0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4934: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543dc0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] kw = {'maxval_limit': 10} [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f9084c0> [ 1345s] <decorator-gen-1940>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] method_name = 'test_mu' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_mu') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff785438b0> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7b624790> [ 1345s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff791aa160> [ 1345s] method_name = 'test_mu' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff791aa160> [ 1345s] [ 1345s] def test_mu(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1345s] self.__A @ self.__B.T) [ 1345s] [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if np.issubdtype(y, np.complexfloating): [ 1345s] B = self.__B.astype(y) [ 1345s] else: [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 9 stored elements in List of Lists format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in List of Lists format> [ 1345s] D1 = array([[ 0, 11, 7, 18], [ 1345s] [ 0, 11, 7, 18], [ 1345s] [ 0, 0, 0, 0], [ 1345s] [ 0, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Compressed Sparse Row format> [ 1345s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff791aa160> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1345s] ______________ Test64Bit.test_resiliency_all_64[TestDIA-test_mu] _______________ [ 1345s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7308f8e0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'>, method_name = 'test_mu' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_all_64(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7308f8e0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff65b2fc10> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7308f8e0> [ 1345s] <decorator-gen-1250>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] method_name = 'test_mu' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_mu') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff65b2fee0> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff66c60820> [ 1345s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff730d5f40> [ 1345s] method_name = 'test_mu' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff730d5f40> [ 1345s] [ 1345s] def test_mu(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1345s] self.__A @ self.__B.T) [ 1345s] [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if np.issubdtype(y, np.complexfloating): [ 1345s] B = self.__B.astype(y) [ 1345s] else: [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1345s] D1 = array([[ 0, 11, 7, 18], [ 1345s] [ 0, 11, 7, 18], [ 1345s] [ 0, 0, 0, 0], [ 1345s] [ 0, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Compressed Sparse Row format> [ 1345s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff730d5f40> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1345s] ______________ Test64Bit.test_resiliency_all_32[TestDOK-test_mu] _______________ [ 1345s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974a47f0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'>, method_name = 'test_mu' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_all_32(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974a47f0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ed56310> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff974a47f0> [ 1345s] <decorator-gen-3533>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_mu' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_mu') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ed56280> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2f6bf160> [ 1345s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff2ed55250> [ 1345s] method_name = 'test_mu' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff2ed55250> [ 1345s] [ 1345s] def test_mu(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1345s] self.__A @ self.__B.T) [ 1345s] [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if np.issubdtype(y, np.complexfloating): [ 1345s] B = self.__B.astype(y) [ 1345s] else: [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 9 stored elements in Dictionary Of Keys format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Dictionary Of Keys format> [ 1345s] D1 = array([[ 0, 11, 7, 18], [ 1345s] [ 0, 11, 7, 18], [ 1345s] [ 0, 0, 0, 0], [ 1345s] [ 0, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Compressed Sparse Row format> [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff2ed55250> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1345s] ____________ Test64Bit.test_resiliency_all_64[TestDOK-test_add_sub] ____________ [ 1345s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730aabb0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_add_sub' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_all_64(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730aabb0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80ca0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff730aabb0> [ 1345s] <decorator-gen-1370>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_add_sub' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_add_sub') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80b80> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff6f056310> [ 1345s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff65481550> [ 1345s] method_name = 'test_add_sub' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff65481550> [ 1345s] [ 1345s] def test_add_sub(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal( [ 1345s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1345s] ) [ 1345s] [ 1345s] # check conversions [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if not np.issubdtype(y, np.complexfloating): [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 9 stored elements in Dictionary Of Keys format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Dictionary Of Keys format> [ 1345s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1345s] [15, -2, 1, 0, 0, 0], [ 1345s] [ 0, 7, 1, 1, 0, 0], [ 1345s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 13 stored elements in Dictionary Of Keys format> [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff65481550> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1345s] ____________ Test64Bit.test_resiliency_random[TestBSR-test_add_sub] ____________ [ 1345s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f8a6df0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1345s] method_name = 'test_add_sub' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_random(self, cls, method_name): [ 1345s] # bsr_matrix.eliminate_zeros relies on csr_matrix constructor [ 1345s] # not making copies of index arrays --- this is not [ 1345s] # necessarily true when we pick the index data type randomly [ 1345s] > self._check_resiliency(cls, method_name, random=True) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f8a6df0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4941: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543940> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1345s] kw = {'random': True} [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7f8a6df0> [ 1345s] <decorator-gen-2060>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1345s] method_name = 'test_add_sub' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_add_sub') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543a60> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7bd24ee0> [ 1345s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff788c1970> [ 1345s] method_name = 'test_add_sub' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff788c1970> [ 1345s] [ 1345s] def test_add_sub(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal( [ 1345s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1345s] ) [ 1345s] [ 1345s] # check conversions [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if not np.issubdtype(y, np.complexfloating): [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1345s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1345s] [15, -2, 1, 0, 0, 0], [ 1345s] [ 0, 7, 1, 1, 0, 0], [ 1345s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1345s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff788c1970> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1345s] ______________ Test64Bit.test_resiliency_all_64[TestDOK-test_mu] _______________ [ 1345s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff73054bb0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'>, method_name = 'test_mu' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_all_64(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff73054bb0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80940> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1345s] method_name = 'test_mu' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff73054bb0> [ 1345s] <decorator-gen-1534>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] method_name = 'test_mu' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_mu') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d800d0> [ 1345s] kw = {} [ 1345s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1345s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1345s] name = 'get_index_dtype' [ 1345s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff654c9ee0> [ 1345s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1345s] getattr(instance, method_name)() [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1345s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff6565d550> [ 1345s] method_name = 'test_mu' [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff6565d550> [ 1345s] [ 1345s] def test_mu(self): [ 1345s] self.__arith_init() [ 1345s] [ 1345s] # basic tests [ 1345s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1345s] self.__A @ self.__B.T) [ 1345s] [ 1345s] for x in supported_dtypes: [ 1345s] A = self.__A.astype(x) [ 1345s] Asp = self.spmatrix(A) [ 1345s] for y in supported_dtypes: [ 1345s] if np.issubdtype(y, np.complexfloating): [ 1345s] B = self.__B.astype(y) [ 1345s] else: [ 1345s] > B = self.__B.real.astype(y) [ 1345s] E RuntimeWarning: invalid value encountered in cast [ 1345s] [ 1345s] A = array([[ True, True, False, True, False, False], [ 1345s] [ True, True, True, False, False, False], [ 1345s] [False, False, True, True, False, False], [ 1345s] [False, False, True, False, False, False]]) [ 1345s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1345s] with 9 stored elements in Dictionary Of Keys format> [ 1345s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1345s] [14, -3, 0, 0, 0, 0], [ 1345s] [ 0, 7, 0, 0, 0, 0], [ 1345s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1345s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Dictionary Of Keys format> [ 1345s] D1 = array([[ 0, 11, 7, 18], [ 1345s] [ 0, 11, 7, 18], [ 1345s] [ 0, 0, 0, 0], [ 1345s] [ 0, 0, 0, 0]], dtype=int8) [ 1345s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1345s] with 6 stored elements in Compressed Sparse Row format> [ 1345s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff6565d550> [ 1345s] x = <class 'numpy.bool_'> [ 1345s] y = <class 'numpy.uint8'> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1345s] ____________ Test64Bit.test_resiliency_all_32[TestLIL-test_add_sub] ____________ [ 1345s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1345s] [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97440ac0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] method_name = 'test_add_sub' [ 1345s] [ 1345s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1345s] def test_resiliency_all_32(self, cls, method_name): [ 1345s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1345s] [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97440ac0> [ 1345s] [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1345s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1345s] check(cls, method_name) [ 1345s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ec2e5e0> [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1345s] method_name = 'test_add_sub' [ 1345s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97440ac0> [ 1345s] <decorator-gen-3653>:2: in check [ 1345s] ??? [ 1345s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1345s] method_name = 'test_add_sub' [ 1345s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1345s] return func(*a, **kw) [ 1345s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_add_sub') [ 1345s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1345s] downcast_maxval = None [ 1345s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ec2e550> [ 1345s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2ec10700> [ 1346s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2ec05d00> [ 1346s] method_name = 'test_add_sub' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2ec05d00> [ 1346s] [ 1346s] def test_add_sub(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal( [ 1346s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1346s] ) [ 1346s] [ 1346s] # check conversions [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if not np.issubdtype(y, np.complexfloating): [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 9 stored elements in List of Lists format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in List of Lists format> [ 1346s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1346s] [15, -2, 1, 0, 0, 0], [ 1346s] [ 0, 7, 1, 1, 0, 0], [ 1346s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 13 stored elements in Compressed Sparse Row format> [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2ec05d00> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1346s] ______________ Test64Bit.test_resiliency_all_32[TestLIL-test_mu] _______________ [ 1346s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9746bc70> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'>, method_name = 'test_mu' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_resiliency_all_32(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int32) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_mu' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9746bc70> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4945: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ec64820> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] kw = {'fixed_dtype': <class 'numpy.int32'>} [ 1346s] method_name = 'test_mu' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff9746bc70> [ 1346s] <decorator-gen-3823>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_mu' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_mu') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ec64790> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2ec459d0> [ 1346s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2ec659a0> [ 1346s] method_name = 'test_mu' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2ec659a0> [ 1346s] [ 1346s] def test_mu(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1346s] self.__A @ self.__B.T) [ 1346s] [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if np.issubdtype(y, np.complexfloating): [ 1346s] B = self.__B.astype(y) [ 1346s] else: [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 9 stored elements in List of Lists format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in List of Lists format> [ 1346s] D1 = array([[ 0, 11, 7, 18], [ 1346s] [ 0, 11, 7, 18], [ 1346s] [ 0, 0, 0, 0], [ 1346s] [ 0, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in Compressed Sparse Row format> [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff2ec659a0> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1346s] ____________ Test64Bit.test_resiliency_all_64[TestLIL-test_add_sub] ____________ [ 1346s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ed20e80> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_add_sub' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_resiliency_all_64(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ed20e80> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543670> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ed20e80> [ 1346s] <decorator-gen-2292>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_add_sub' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_add_sub') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543790> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff788d2790> [ 1346s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff78420b20> [ 1346s] method_name = 'test_add_sub' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff78420b20> [ 1346s] [ 1346s] def test_add_sub(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal( [ 1346s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1346s] ) [ 1346s] [ 1346s] # check conversions [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if not np.issubdtype(y, np.complexfloating): [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 9 stored elements in List of Lists format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in List of Lists format> [ 1346s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1346s] [15, -2, 1, 0, 0, 0], [ 1346s] [ 0, 7, 1, 1, 0, 0], [ 1346s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 13 stored elements in Compressed Sparse Row format> [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff78420b20> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1346s] __________________ Test64Bit.test_no_64[TestDIA-test_add_sub] __________________ [ 1346s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d60d30> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] method_name = 'test_add_sub' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_no_64(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d60d30> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff66c60670> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] kw = {'assert_32bit': True} [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d60d30> [ 1346s] <decorator-gen-1670>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] method_name = 'test_add_sub' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_add_sub') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff66c608b0> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff659869d0> [ 1346s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65679910> [ 1346s] method_name = 'test_add_sub' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65679910> [ 1346s] [ 1346s] def test_add_sub(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal( [ 1346s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1346s] ) [ 1346s] [ 1346s] # check conversions [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if not np.issubdtype(y, np.complexfloating): [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1346s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1346s] [15, -2, 1, 0, 0, 0], [ 1346s] [ 0, 7, 1, 1, 0, 0], [ 1346s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 18 stored elements (7 diagonals) in DIAgonal format> [ 1346s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65679910> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1346s] ______________ Test64Bit.test_resiliency_all_64[TestLIL-test_mu] _______________ [ 1346s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ed58070> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'>, method_name = 'test_mu' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_resiliency_all_64(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_mu' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ed58070> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66790> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1346s] method_name = 'test_mu' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ed58070> [ 1346s] <decorator-gen-2462>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] method_name = 'test_mu' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_mu') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66670> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff788d2550> [ 1346s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff783a9370> [ 1346s] method_name = 'test_mu' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff783a9370> [ 1346s] [ 1346s] def test_mu(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1346s] self.__A @ self.__B.T) [ 1346s] [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if np.issubdtype(y, np.complexfloating): [ 1346s] B = self.__B.astype(y) [ 1346s] else: [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 9 stored elements in List of Lists format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in List of Lists format> [ 1346s] D1 = array([[ 0, 11, 7, 18], [ 1346s] [ 0, 11, 7, 18], [ 1346s] [ 0, 0, 0, 0], [ 1346s] [ 0, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in Compressed Sparse Row format> [ 1346s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff783a9370> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1346s] ____________________ Test64Bit.test_no_64[TestDIA-test_mu] _____________________ [ 1346s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d0dca0> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'>, method_name = 'test_mu' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_no_64(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] method_name = 'test_mu' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d0dca0> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff654c9700> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] kw = {'assert_32bit': True} [ 1346s] method_name = 'test_mu' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d0dca0> [ 1346s] <decorator-gen-1828>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] method_name = 'test_mu' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestDIA'>, 'test_mu') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff654c9160> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff65b2f280> [ 1346s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDIA'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65487190> [ 1346s] method_name = 'test_mu' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65487190> [ 1346s] [ 1346s] def test_mu(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1346s] self.__A @ self.__B.T) [ 1346s] [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if np.issubdtype(y, np.complexfloating): [ 1346s] B = self.__B.astype(y) [ 1346s] else: [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 14 stored elements (4 diagonals) in DIAgonal format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 11 stored elements (5 diagonals) in DIAgonal format> [ 1346s] D1 = array([[ 0, 11, 7, 18], [ 1346s] [ 0, 11, 7, 18], [ 1346s] [ 0, 0, 0, 0], [ 1346s] [ 0, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements in Compressed Sparse Row format> [ 1346s] self = <scipy.sparse.tests.test_base.TestDIA object at 0xffff65487190> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1346s] ____________ Test64Bit.test_resiliency_all_64[TestBSR-test_add_sub] ____________ [ 1346s] [gw1] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97418700> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1346s] method_name = 'test_add_sub' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_resiliency_all_64(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, fixed_dtype=np.int64) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97418700> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4949: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ea34af0> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1346s] kw = {'fixed_dtype': <class 'numpy.int64'>} [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff97418700> [ 1346s] <decorator-gen-3943>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1346s] method_name = 'test_add_sub' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_add_sub') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffffb0d9fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff2ea34a60> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff2ea019d0> [ 1346s] oldfunc = <function get_index_dtype at 0xffffb0d9fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff2ea32c70> [ 1346s] method_name = 'test_add_sub' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff2ea32c70> [ 1346s] [ 1346s] def test_add_sub(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal( [ 1346s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1346s] ) [ 1346s] [ 1346s] # check conversions [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if not np.issubdtype(y, np.complexfloating): [ 1346s] > B = self.__B.real.astype(y) [ 1346s] E RuntimeWarning: invalid value encountered in cast [ 1346s] [ 1346s] A = array([[ True, True, False, True, False, False], [ 1346s] [ True, True, True, False, False, False], [ 1346s] [False, False, True, True, False, False], [ 1346s] [False, False, True, False, False, False]]) [ 1346s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1346s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1346s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1346s] [14, -3, 0, 0, 0, 0], [ 1346s] [ 0, 7, 0, 0, 0, 0], [ 1346s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1346s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1346s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1346s] [15, -2, 1, 0, 0, 0], [ 1346s] [ 0, 7, 1, 1, 0, 0], [ 1346s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1346s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1346s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1346s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff2ea32c70> [ 1346s] x = <class 'numpy.bool_'> [ 1346s] y = <class 'numpy.uint8'> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1346s] __________________ Test64Bit.test_no_64[TestDOK-test_add_sub] __________________ [ 1346s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d26f70> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1346s] method_name = 'test_add_sub' [ 1346s] [ 1346s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1346s] def test_no_64(self, cls, method_name): [ 1346s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1346s] [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d26f70> [ 1346s] [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1346s] check(cls, method_name) [ 1346s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d791f0> [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1346s] kw = {'assert_32bit': True} [ 1346s] method_name = 'test_add_sub' [ 1346s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72d26f70> [ 1346s] <decorator-gen-1948>:2: in check [ 1346s] ??? [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1346s] method_name = 'test_add_sub' [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1346s] return func(*a, **kw) [ 1346s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_add_sub') [ 1346s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1346s] downcast_maxval = None [ 1346s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d800d0> [ 1346s] kw = {} [ 1346s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1346s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1346s] name = 'get_index_dtype' [ 1346s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff654c9af0> [ 1346s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1346s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1346s] getattr(instance, method_name)() [ 1346s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1346s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff730d5760> [ 1346s] method_name = 'test_add_sub' [ 1346s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1346s] [ 1346s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff730d5760> [ 1346s] [ 1346s] def test_add_sub(self): [ 1346s] self.__arith_init() [ 1346s] [ 1346s] # basic tests [ 1346s] assert_array_equal( [ 1346s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1346s] ) [ 1346s] [ 1346s] # check conversions [ 1346s] for x in supported_dtypes: [ 1346s] A = self.__A.astype(x) [ 1346s] Asp = self.spmatrix(A) [ 1346s] for y in supported_dtypes: [ 1346s] if not np.issubdtype(y, np.complexfloating): [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 9 stored elements in Dictionary Of Keys format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in Dictionary Of Keys format> [ 1347s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1347s] [15, -2, 1, 0, 0, 0], [ 1347s] [ 0, 7, 1, 1, 0, 0], [ 1347s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 13 stored elements in Dictionary Of Keys format> [ 1347s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff730d5760> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1347s] __________________ Test64Bit.test_no_64[TestBSR-test_add_sub] __________________ [ 1347s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ecf39a0> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] method_name = 'test_add_sub' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ecf39a0> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66ee0> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ecf39a0> [ 1347s] <decorator-gen-2582>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] method_name = 'test_add_sub' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_add_sub') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a663a0> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff780cfb80> [ 1347s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff787ee640> [ 1347s] method_name = 'test_add_sub' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff787ee640> [ 1347s] [ 1347s] def test_add_sub(self): [ 1347s] self.__arith_init() [ 1347s] [ 1347s] # basic tests [ 1347s] assert_array_equal( [ 1347s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1347s] ) [ 1347s] [ 1347s] # check conversions [ 1347s] for x in supported_dtypes: [ 1347s] A = self.__A.astype(x) [ 1347s] Asp = self.spmatrix(A) [ 1347s] for y in supported_dtypes: [ 1347s] if not np.issubdtype(y, np.complexfloating): [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1347s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1347s] [15, -2, 1, 0, 0, 0], [ 1347s] [ 0, 7, 1, 1, 0, 0], [ 1347s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 20 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1347s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff787ee640> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1347s] ____________________ Test64Bit.test_no_64[TestDOK-test_mu] _____________________ [ 1347s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72cd1f70> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'>, method_name = 'test_mu' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1347s] method_name = 'test_mu' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72cd1f70> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80b80> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_mu' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72cd1f70> [ 1347s] <decorator-gen-2112>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1347s] method_name = 'test_mu' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestDOK'>, 'test_mu') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d80a60> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff67d79c10> [ 1347s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestDOK'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestDOK object at 0xffff72cd1970> [ 1347s] method_name = 'test_mu' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff72cd1970> [ 1347s] [ 1347s] def test_mu(self): [ 1347s] self.__arith_init() [ 1347s] [ 1347s] # basic tests [ 1347s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1347s] self.__A @ self.__B.T) [ 1347s] [ 1347s] for x in supported_dtypes: [ 1347s] A = self.__A.astype(x) [ 1347s] Asp = self.spmatrix(A) [ 1347s] for y in supported_dtypes: [ 1347s] if np.issubdtype(y, np.complexfloating): [ 1347s] B = self.__B.astype(y) [ 1347s] else: [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 9 stored elements in Dictionary Of Keys format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in Dictionary Of Keys format> [ 1347s] D1 = array([[ 0, 11, 7, 18], [ 1347s] [ 0, 11, 7, 18], [ 1347s] [ 0, 0, 0, 0], [ 1347s] [ 0, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in Compressed Sparse Row format> [ 1347s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffff72cd1970> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1347s] ____________________ Test64Bit.test_no_64[TestBSR-test_mu] _____________________ [ 1347s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ebd73a0> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'>, method_name = 'test_mu' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] method_name = 'test_mu' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ebd73a0> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66430> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_mu' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7ebd73a0> [ 1347s] <decorator-gen-2760>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] method_name = 'test_mu' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestBSR'>, 'test_mu') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66940> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7bd24ee0> [ 1347s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestBSR'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestBSR object at 0xffff78ca2b80> [ 1347s] method_name = 'test_mu' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff78ca2b80> [ 1347s] [ 1347s] def test_mu(self): [ 1347s] self.__arith_init() [ 1347s] [ 1347s] # basic tests [ 1347s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1347s] self.__A @ self.__B.T) [ 1347s] [ 1347s] for x in supported_dtypes: [ 1347s] A = self.__A.astype(x) [ 1347s] Asp = self.spmatrix(A) [ 1347s] for y in supported_dtypes: [ 1347s] if np.issubdtype(y, np.complexfloating): [ 1347s] B = self.__B.astype(y) [ 1347s] else: [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 12 stored elements (blocksize = 2x2) in Block Sparse Row format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements (blocksize = 1x1) in Block Sparse Row format> [ 1347s] D1 = array([[ 0, 11, 7, 18], [ 1347s] [ 0, 11, 7, 18], [ 1347s] [ 0, 0, 0, 0], [ 1347s] [ 0, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements (blocksize = 2x1) in Block Sparse Row format> [ 1347s] self = <scipy.sparse.tests.test_base.TestBSR object at 0xffff78ca2b80> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1347s] __________________ Test64Bit.test_no_64[TestCOO-test_add_sub] __________________ [ 1347s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb73670> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] method_name = 'test_add_sub' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb73670> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66160> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb73670> [ 1347s] <decorator-gen-2874>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] method_name = 'test_add_sub' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_add_sub') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66a60> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff78a669d0> [ 1347s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff791d0eb0> [ 1347s] method_name = 'test_add_sub' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff791d0eb0> [ 1347s] [ 1347s] def test_add_sub(self): [ 1347s] self.__arith_init() [ 1347s] [ 1347s] # basic tests [ 1347s] assert_array_equal( [ 1347s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1347s] ) [ 1347s] [ 1347s] # check conversions [ 1347s] for x in supported_dtypes: [ 1347s] A = self.__A.astype(x) [ 1347s] Asp = self.spmatrix(A) [ 1347s] for y in supported_dtypes: [ 1347s] if not np.issubdtype(y, np.complexfloating): [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 9 stored elements in COOrdinate format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in COOrdinate format> [ 1347s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1347s] [15, -2, 1, 0, 0, 0], [ 1347s] [ 0, 7, 1, 1, 0, 0], [ 1347s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 13 stored elements in Compressed Sparse Row format> [ 1347s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff791d0eb0> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1347s] __________________ Test64Bit.test_no_64[TestLIL-test_add_sub] __________________ [ 1347s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72c79280> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1347s] method_name = 'test_add_sub' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72c79280> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d798b0> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72c79280> [ 1347s] <decorator-gen-2232>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1347s] method_name = 'test_add_sub' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_add_sub') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff67d79790> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff67d80940> [ 1347s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff656bc8b0> [ 1347s] method_name = 'test_add_sub' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff656bc8b0> [ 1347s] [ 1347s] def test_add_sub(self): [ 1347s] self.__arith_init() [ 1347s] [ 1347s] # basic tests [ 1347s] assert_array_equal( [ 1347s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1347s] ) [ 1347s] [ 1347s] # check conversions [ 1347s] for x in supported_dtypes: [ 1347s] A = self.__A.astype(x) [ 1347s] Asp = self.spmatrix(A) [ 1347s] for y in supported_dtypes: [ 1347s] if not np.issubdtype(y, np.complexfloating): [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 9 stored elements in List of Lists format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in List of Lists format> [ 1347s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1347s] [15, -2, 1, 0, 0, 0], [ 1347s] [ 0, 7, 1, 1, 0, 0], [ 1347s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 13 stored elements in Compressed Sparse Row format> [ 1347s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff656bc8b0> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1347s] ____________________ Test64Bit.test_no_64[TestCOO-test_mu] _____________________ [ 1347s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb9d8b0> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'>, method_name = 'test_mu' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] method_name = 'test_mu' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb9d8b0> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543160> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_mu' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb9d8b0> [ 1347s] <decorator-gen-3042>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] method_name = 'test_mu' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestCOO'>, 'test_mu') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff785433a0> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff789f65e0> [ 1347s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCOO'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestCOO object at 0xffff783afdc0> [ 1347s] method_name = 'test_mu' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff783afdc0> [ 1347s] [ 1347s] def test_mu(self): [ 1347s] self.__arith_init() [ 1347s] [ 1347s] # basic tests [ 1347s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1347s] self.__A @ self.__B.T) [ 1347s] [ 1347s] for x in supported_dtypes: [ 1347s] A = self.__A.astype(x) [ 1347s] Asp = self.spmatrix(A) [ 1347s] for y in supported_dtypes: [ 1347s] if np.issubdtype(y, np.complexfloating): [ 1347s] B = self.__B.astype(y) [ 1347s] else: [ 1347s] > B = self.__B.real.astype(y) [ 1347s] E RuntimeWarning: invalid value encountered in cast [ 1347s] [ 1347s] A = array([[ True, True, False, True, False, False], [ 1347s] [ True, True, True, False, False, False], [ 1347s] [False, False, True, True, False, False], [ 1347s] [False, False, True, False, False, False]]) [ 1347s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1347s] with 9 stored elements in COOrdinate format> [ 1347s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1347s] [14, -3, 0, 0, 0, 0], [ 1347s] [ 0, 7, 0, 0, 0, 0], [ 1347s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1347s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in COOrdinate format> [ 1347s] D1 = array([[ 0, 11, 7, 18], [ 1347s] [ 0, 11, 7, 18], [ 1347s] [ 0, 0, 0, 0], [ 1347s] [ 0, 0, 0, 0]], dtype=int8) [ 1347s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1347s] with 6 stored elements in Compressed Sparse Row format> [ 1347s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffff783afdc0> [ 1347s] x = <class 'numpy.bool_'> [ 1347s] y = <class 'numpy.uint8'> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1347s] __________________ Test64Bit.test_no_64[TestCSC-test_add_sub] __________________ [ 1347s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1347s] [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb38ca0> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1347s] method_name = 'test_add_sub' [ 1347s] [ 1347s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1347s] def test_no_64(self, cls, method_name): [ 1347s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1347s] [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb38ca0> [ 1347s] [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1347s] check(cls, method_name) [ 1347s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78543d30> [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1347s] kw = {'assert_32bit': True} [ 1347s] method_name = 'test_add_sub' [ 1347s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb38ca0> [ 1347s] <decorator-gen-3166>:2: in check [ 1347s] ??? [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1347s] method_name = 'test_add_sub' [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1347s] return func(*a, **kw) [ 1347s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_add_sub') [ 1347s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1347s] downcast_maxval = None [ 1347s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff785434c0> [ 1347s] kw = {} [ 1347s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1347s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1347s] name = 'get_index_dtype' [ 1347s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff789f6700> [ 1347s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1347s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1347s] getattr(instance, method_name)() [ 1347s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1347s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff7867cc70> [ 1347s] method_name = 'test_add_sub' [ 1347s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1347s] [ 1348s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff7867cc70> [ 1348s] [ 1348s] def test_add_sub(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal( [ 1348s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1348s] ) [ 1348s] [ 1348s] # check conversions [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if not np.issubdtype(y, np.complexfloating): [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in Compressed Sparse Column format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Column format> [ 1348s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1348s] [15, -2, 1, 0, 0, 0], [ 1348s] [ 0, 7, 1, 1, 0, 0], [ 1348s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 13 stored elements in Compressed Sparse Column format> [ 1348s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff7867cc70> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1348s] ____________________ Test64Bit.test_no_64[TestLIL-test_mu] _____________________ [ 1348s] [gw0] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72ca4430> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'>, method_name = 'test_mu' [ 1348s] [ 1348s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1348s] def test_no_64(self, cls, method_name): [ 1348s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1348s] [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1348s] method_name = 'test_mu' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72ca4430> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1348s] check(cls, method_name) [ 1348s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff6531b430> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1348s] kw = {'assert_32bit': True} [ 1348s] method_name = 'test_mu' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff72ca4430> [ 1348s] <decorator-gen-2402>:2: in check [ 1348s] ??? [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1348s] method_name = 'test_mu' [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1348s] return func(*a, **kw) [ 1348s] a = (<class 'scipy.sparse.tests.test_base.TestLIL'>, 'test_mu') [ 1348s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff8cc9fd30>), ...] [ 1348s] downcast_maxval = None [ 1348s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff6fa5e700> [ 1348s] kw = {} [ 1348s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1348s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1348s] name = 'get_index_dtype' [ 1348s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff66c60d30> [ 1348s] oldfunc = <function get_index_dtype at 0xffff8cc9fd30> [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1348s] getattr(instance, method_name)() [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestLIL'> [ 1348s] instance = <scipy.sparse.tests.test_base.TestLIL object at 0xffff66b91f70> [ 1348s] method_name = 'test_mu' [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff66b91f70> [ 1348s] [ 1348s] def test_mu(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1348s] self.__A @ self.__B.T) [ 1348s] [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if np.issubdtype(y, np.complexfloating): [ 1348s] B = self.__B.astype(y) [ 1348s] else: [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in List of Lists format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in List of Lists format> [ 1348s] D1 = array([[ 0, 11, 7, 18], [ 1348s] [ 0, 11, 7, 18], [ 1348s] [ 0, 0, 0, 0], [ 1348s] [ 0, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffff66b91f70> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1348s] ____________________ Test64Bit.test_no_64[TestCSC-test_mu] _____________________ [ 1348s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eae4f70> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'>, method_name = 'test_mu' [ 1348s] [ 1348s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1348s] def test_no_64(self, cls, method_name): [ 1348s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1348s] [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1348s] method_name = 'test_mu' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eae4f70> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1348s] check(cls, method_name) [ 1348s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66ca0> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1348s] kw = {'assert_32bit': True} [ 1348s] method_name = 'test_mu' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eae4f70> [ 1348s] <decorator-gen-3340>:2: in check [ 1348s] ??? [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1348s] method_name = 'test_mu' [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1348s] return func(*a, **kw) [ 1348s] a = (<class 'scipy.sparse.tests.test_base.TestCSC'>, 'test_mu') [ 1348s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1348s] downcast_maxval = None [ 1348s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66310> [ 1348s] kw = {} [ 1348s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1348s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1348s] name = 'get_index_dtype' [ 1348s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7b624ee0> [ 1348s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1348s] getattr(instance, method_name)() [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSC'> [ 1348s] instance = <scipy.sparse.tests.test_base.TestCSC object at 0xffff78930a30> [ 1348s] method_name = 'test_mu' [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff78930a30> [ 1348s] [ 1348s] def test_mu(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1348s] self.__A @ self.__B.T) [ 1348s] [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if np.issubdtype(y, np.complexfloating): [ 1348s] B = self.__B.astype(y) [ 1348s] else: [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in Compressed Sparse Column format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Column format> [ 1348s] D1 = array([[ 0, 11, 7, 18], [ 1348s] [ 0, 11, 7, 18], [ 1348s] [ 0, 0, 0, 0], [ 1348s] [ 0, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Column format> [ 1348s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffff78930a30> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1348s] __________________ Test64Bit.test_no_64[TestCSR-test_add_sub] __________________ [ 1348s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb0a3a0> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] method_name = 'test_add_sub' [ 1348s] [ 1348s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1348s] def test_no_64(self, cls, method_name): [ 1348s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1348s] [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] method_name = 'test_add_sub' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb0a3a0> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1348s] check(cls, method_name) [ 1348s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf790> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] kw = {'assert_32bit': True} [ 1348s] method_name = 'test_add_sub' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eb0a3a0> [ 1348s] <decorator-gen-3462>:2: in check [ 1348s] ??? [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] method_name = 'test_add_sub' [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1348s] return func(*a, **kw) [ 1348s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_add_sub') [ 1348s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1348s] downcast_maxval = None [ 1348s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff780cf700> [ 1348s] kw = {} [ 1348s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1348s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1348s] name = 'get_index_dtype' [ 1348s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff7b637430> [ 1348s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1348s] getattr(instance, method_name)() [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff7eafe340> [ 1348s] method_name = 'test_add_sub' [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff7eafe340> [ 1348s] [ 1348s] def test_add_sub(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal( [ 1348s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1348s] ) [ 1348s] [ 1348s] # check conversions [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if not np.issubdtype(y, np.complexfloating): [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in Compressed Sparse Row format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1348s] [15, -2, 1, 0, 0, 0], [ 1348s] [ 0, 7, 1, 1, 0, 0], [ 1348s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 13 stored elements in Compressed Sparse Row format> [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff7eafe340> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1348s] ____________________ Test64Bit.test_no_64[TestCSR-test_mu] _____________________ [ 1348s] [gw2] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eab6940> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'>, method_name = 'test_mu' [ 1348s] [ 1348s] @pytest.mark.parametrize('cls,method_name', cases_64bit()) [ 1348s] def test_no_64(self, cls, method_name): [ 1348s] > self._check_resiliency(cls, method_name, assert_32bit=True) [ 1348s] [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] method_name = 'test_mu' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eab6940> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4953: [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4930: in _check_resiliency [ 1348s] check(cls, method_name) [ 1348s] check = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66af0> [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] kw = {'assert_32bit': True} [ 1348s] method_name = 'test_mu' [ 1348s] self = <scipy.sparse.tests.test_base.Test64Bit object at 0xffff7eab6940> [ 1348s] <decorator-gen-3642>:2: in check [ 1348s] ??? [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] method_name = 'test_mu' [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:152: in deco [ 1348s] return func(*a, **kw) [ 1348s] a = (<class 'scipy.sparse.tests.test_base.TestCSR'>, 'test_mu') [ 1348s] backup = [(<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, 'get_index_dtype', <fun.../python3.8/site-packages/scipy/sparse/_dok.py'>, 'get_index_dtype', <function get_index_dtype at 0xffff98a1fd30>), ...] [ 1348s] downcast_maxval = None [ 1348s] func = <function Test64Bit._check_resiliency.<locals>.check at 0xffff78a66430> [ 1348s] kw = {} [ 1348s] mod = <module 'scipy.sparse._construct' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_construct.py'> [ 1348s] modules = [<module 'scipy.sparse._bsr' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_bsr.py'>, <module 'scipy.sparse._c...ipy/sparse/_dia.py'>, <module 'scipy.sparse._dok' from '/usr/lib64/python3.8/site-packages/scipy/sparse/_dok.py'>, ...] [ 1348s] name = 'get_index_dtype' [ 1348s] new_get_index_dtype = <function with_64bit_maxval_limit.<locals>.new_get_index_dtype at 0xffff78ba4160> [ 1348s] oldfunc = <function get_index_dtype at 0xffff98a1fd30> [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:4925: in check [ 1348s] getattr(instance, method_name)() [ 1348s] cls = <class 'scipy.sparse.tests.test_base.TestCSR'> [ 1348s] instance = <scipy.sparse.tests.test_base.TestCSR object at 0xffff78a24f40> [ 1348s] method_name = 'test_mu' [ 1348s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff78a24f40> [ 1348s] [ 1348s] def test_mu(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1348s] self.__A @ self.__B.T) [ 1348s] [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if np.issubdtype(y, np.complexfloating): [ 1348s] B = self.__B.astype(y) [ 1348s] else: [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in Compressed Sparse Row format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] D1 = array([[ 0, 11, 7, 18], [ 1348s] [ 0, 11, 7, 18], [ 1348s] [ 0, 0, 0, 0], [ 1348s] [ 0, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffff78a24f40> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1348s] _____________________________ TestCSR.test_add_sub _____________________________ [ 1348s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffffa0f83670> [ 1348s] [ 1348s] def test_add_sub(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal( [ 1348s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1348s] ) [ 1348s] [ 1348s] # check conversions [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if not np.issubdtype(y, np.complexfloating): [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in Compressed Sparse Row format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1348s] [15, -2, 1, 0, 0, 0], [ 1348s] [ 0, 7, 1, 1, 0, 0], [ 1348s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 13 stored elements in Compressed Sparse Row format> [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffffa0f83670> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1348s] _______________________________ TestCSR.test_mu ________________________________ [ 1348s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1348s] [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffffa0f837c0> [ 1348s] [ 1348s] def test_mu(self): [ 1348s] self.__arith_init() [ 1348s] [ 1348s] # basic tests [ 1348s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1348s] self.__A @ self.__B.T) [ 1348s] [ 1348s] for x in supported_dtypes: [ 1348s] A = self.__A.astype(x) [ 1348s] Asp = self.spmatrix(A) [ 1348s] for y in supported_dtypes: [ 1348s] if np.issubdtype(y, np.complexfloating): [ 1348s] B = self.__B.astype(y) [ 1348s] else: [ 1348s] > B = self.__B.real.astype(y) [ 1348s] E RuntimeWarning: invalid value encountered in cast [ 1348s] [ 1348s] A = array([[ True, True, False, True, False, False], [ 1348s] [ True, True, True, False, False, False], [ 1348s] [False, False, True, True, False, False], [ 1348s] [False, False, True, False, False, False]]) [ 1348s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1348s] with 9 stored elements in Compressed Sparse Row format> [ 1348s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1348s] [14, -3, 0, 0, 0, 0], [ 1348s] [ 0, 7, 0, 0, 0, 0], [ 1348s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1348s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] D1 = array([[ 0, 11, 7, 18], [ 1348s] [ 0, 11, 7, 18], [ 1348s] [ 0, 0, 0, 0], [ 1348s] [ 0, 0, 0, 0]], dtype=int8) [ 1348s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1348s] with 6 stored elements in Compressed Sparse Row format> [ 1348s] self = <scipy.sparse.tests.test_base.TestCSR object at 0xffffa0f837c0> [ 1348s] x = <class 'numpy.bool_'> [ 1348s] y = <class 'numpy.uint8'> [ 1348s] [ 1348s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1349s] _____________________________ TestCSC.test_add_sub _____________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffffa1746af0> [ 1349s] [ 1349s] def test_add_sub(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal( [ 1349s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1349s] ) [ 1349s] [ 1349s] # check conversions [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if not np.issubdtype(y, np.complexfloating): [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in Compressed Sparse Column format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Compressed Sparse Column format> [ 1349s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1349s] [15, -2, 1, 0, 0, 0], [ 1349s] [ 0, 7, 1, 1, 0, 0], [ 1349s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 13 stored elements in Compressed Sparse Column format> [ 1349s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffffa1746af0> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1349s] _______________________________ TestCSC.test_mu ________________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffffa1695b80> [ 1349s] [ 1349s] def test_mu(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1349s] self.__A @ self.__B.T) [ 1349s] [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if np.issubdtype(y, np.complexfloating): [ 1349s] B = self.__B.astype(y) [ 1349s] else: [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in Compressed Sparse Column format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Compressed Sparse Column format> [ 1349s] D1 = array([[ 0, 11, 7, 18], [ 1349s] [ 0, 11, 7, 18], [ 1349s] [ 0, 0, 0, 0], [ 1349s] [ 0, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Compressed Sparse Column format> [ 1349s] self = <scipy.sparse.tests.test_base.TestCSC object at 0xffffa1695b80> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1349s] _____________________________ TestDOK.test_add_sub _____________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffffa1f31340> [ 1349s] [ 1349s] def test_add_sub(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal( [ 1349s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1349s] ) [ 1349s] [ 1349s] # check conversions [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if not np.issubdtype(y, np.complexfloating): [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in Dictionary Of Keys format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Dictionary Of Keys format> [ 1349s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1349s] [15, -2, 1, 0, 0, 0], [ 1349s] [ 0, 7, 1, 1, 0, 0], [ 1349s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 13 stored elements in Dictionary Of Keys format> [ 1349s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffffa1f31340> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1349s] _______________________________ TestDOK.test_mu ________________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffffa1f29970> [ 1349s] [ 1349s] def test_mu(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1349s] self.__A @ self.__B.T) [ 1349s] [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if np.issubdtype(y, np.complexfloating): [ 1349s] B = self.__B.astype(y) [ 1349s] else: [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in Dictionary Of Keys format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Dictionary Of Keys format> [ 1349s] D1 = array([[ 0, 11, 7, 18], [ 1349s] [ 0, 11, 7, 18], [ 1349s] [ 0, 0, 0, 0], [ 1349s] [ 0, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Compressed Sparse Row format> [ 1349s] self = <scipy.sparse.tests.test_base.TestDOK object at 0xffffa1f29970> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1349s] _____________________________ TestLIL.test_add_sub _____________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffffa17cf130> [ 1349s] [ 1349s] def test_add_sub(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal( [ 1349s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1349s] ) [ 1349s] [ 1349s] # check conversions [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if not np.issubdtype(y, np.complexfloating): [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in List of Lists format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in List of Lists format> [ 1349s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1349s] [15, -2, 1, 0, 0, 0], [ 1349s] [ 0, 7, 1, 1, 0, 0], [ 1349s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 13 stored elements in Compressed Sparse Row format> [ 1349s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffffa17cf130> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1349s] _______________________________ TestLIL.test_mu ________________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffffa17cf280> [ 1349s] [ 1349s] def test_mu(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1349s] self.__A @ self.__B.T) [ 1349s] [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if np.issubdtype(y, np.complexfloating): [ 1349s] B = self.__B.astype(y) [ 1349s] else: [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in List of Lists format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in List of Lists format> [ 1349s] D1 = array([[ 0, 11, 7, 18], [ 1349s] [ 0, 11, 7, 18], [ 1349s] [ 0, 0, 0, 0], [ 1349s] [ 0, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Compressed Sparse Row format> [ 1349s] self = <scipy.sparse.tests.test_base.TestLIL object at 0xffffa17cf280> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1349s] _____________________________ TestCOO.test_add_sub _____________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffffa1fb2280> [ 1349s] [ 1349s] def test_add_sub(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal( [ 1349s] (self.__Asp + self.__Bsp).toarray(), self.__A + self.__B [ 1349s] ) [ 1349s] [ 1349s] # check conversions [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if not np.issubdtype(y, np.complexfloating): [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in COOrdinate format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in COOrdinate format> [ 1349s] D1 = array([[ 1, 1, 0, 1, -5, 2], [ 1349s] [15, -2, 1, 0, 0, 0], [ 1349s] [ 0, 7, 1, 1, 0, 0], [ 1349s] [18, 0, 1, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 13 stored elements in Compressed Sparse Row format> [ 1349s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffffa1fb2280> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3266: RuntimeWarning [ 1349s] _______________________________ TestCOO.test_mu ________________________________ [ 1349s] [gw3] linux -- Python 3.8.16 /usr/bin/python3.8 [ 1349s] [ 1349s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffffa1fb23d0> [ 1349s] [ 1349s] def test_mu(self): [ 1349s] self.__arith_init() [ 1349s] [ 1349s] # basic tests [ 1349s] assert_array_equal((self.__Asp * self.__Bsp.T).toarray(), [ 1349s] self.__A @ self.__B.T) [ 1349s] [ 1349s] for x in supported_dtypes: [ 1349s] A = self.__A.astype(x) [ 1349s] Asp = self.spmatrix(A) [ 1349s] for y in supported_dtypes: [ 1349s] if np.issubdtype(y, np.complexfloating): [ 1349s] B = self.__B.astype(y) [ 1349s] else: [ 1349s] > B = self.__B.real.astype(y) [ 1349s] E RuntimeWarning: invalid value encountered in cast [ 1349s] [ 1349s] A = array([[ True, True, False, True, False, False], [ 1349s] [ True, True, True, False, False, False], [ 1349s] [False, False, True, True, False, False], [ 1349s] [False, False, True, False, False, False]]) [ 1349s] Asp = <4x6 sparse matrix of type '<class 'numpy.bool_'>' [ 1349s] with 9 stored elements in COOrdinate format> [ 1349s] B = array([[ 0, 0, 0, 0, -5, 2], [ 1349s] [14, -3, 0, 0, 0, 0], [ 1349s] [ 0, 7, 0, 0, 0, 0], [ 1349s] [18, 0, 0, 0, 0, 0]], dtype=int8) [ 1349s] Bsp = <4x6 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in COOrdinate format> [ 1349s] D1 = array([[ 0, 11, 7, 18], [ 1349s] [ 0, 11, 7, 18], [ 1349s] [ 0, 0, 0, 0], [ 1349s] [ 0, 0, 0, 0]], dtype=int8) [ 1349s] S1 = <4x4 sparse matrix of type '<class 'numpy.int8'>' [ 1349s] with 6 stored elements in Compressed Sparse Row format> [ 1349s] self = <scipy.sparse.tests.test_base.TestCOO object at 0xffffa1fb23d0> [ 1349s] x = <class 'numpy.bool_'> [ 1349s] y = <class 'numpy.uint8'> [ 1349s] [ 1349s] /usr/lib64/python3.8/site-packages/scipy/sparse/tests/test_base.py:3307: RuntimeWarning [ 1349s] =========================== short test summary info ============================ [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRdelete_f::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRdelete_F::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRdelete_d::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRdelete_D::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRinsert_f::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRinsert_F::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRinsert_d::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRinsert_D::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRupdate_f::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRupdate_F::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRupdate_d::test_unsupported_dtypes [ 1349s] FAILED linalg/tests/test_decomp_update.py::TestQRupdate_D::test_unsupported_dtypes [ 1349s] FAILED sparse/tests/test_base.py::TestDIA::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestDIA::test_mu - RuntimeWarning: invalid ... [ 1349s] FAILED sparse/tests/test_base.py::TestBSR::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestBSR::test_mu - RuntimeWarning: invalid ... [ 1349s] FAILED sparse/tests/test_base.py::TestCSRNonCanonical::test_add_sub - Runtime... [ 1349s] FAILED sparse/tests/test_base.py::TestCSRNonCanonical::test_mu - RuntimeWarni... [ 1349s] FAILED sparse/tests/test_base.py::TestCSCNonCanonical::test_add_sub - Runtime... [ 1349s] FAILED sparse/tests/test_base.py::TestCSCNonCanonical::test_mu - RuntimeWarni... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestBSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::TestBSRNonCanonical::test_add_sub - Runtime... [ 1349s] FAILED sparse/tests/test_base.py::TestBSRNonCanonical::test_mu - RuntimeWarni... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCOO-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCOO-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCSC-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::TestCOONonCanonical::test_add_sub - Runtime... [ 1349s] FAILED sparse/tests/test_base.py::TestCOONonCanonical::test_mu - RuntimeWarni... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCSC-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestBSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestBSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCOO-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCOO-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestDIA-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCSC-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestDIA-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestDOK-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestDOK-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCSC-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestLIL-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestLIL-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestBSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestBSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestDIA-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCOO-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCOO-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestBSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestDIA-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCOO-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCSC-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestDOK-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCOO-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCSC-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCSC-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestDOK-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCSC-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestDIA-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCSR-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestDIA-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestLIL-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestDOK-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestDIA-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestLIL-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestDIA-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestDOK-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestDOK-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestBSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestDOK-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestLIL-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestLIL-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestLIL-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestDIA-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestLIL-test_mu] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestDIA-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestBSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestDOK-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestBSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestDOK-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestBSR-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestCOO-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestLIL-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestCOO-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestCSC-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestLIL-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestCSC-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestCSR-test_add_sub] [ 1349s] FAILED sparse/tests/test_base.py::Test64Bit::test_no_64[TestCSR-test_mu] - Ru... [ 1349s] FAILED sparse/tests/test_base.py::TestCSR::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestCSR::test_mu - RuntimeWarning: invalid ... [ 1349s] FAILED sparse/tests/test_base.py::TestCSC::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestCSC::test_mu - RuntimeWarning: invalid ... [ 1349s] FAILED sparse/tests/test_base.py::TestDOK::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestDOK::test_mu - RuntimeWarning: invalid ... [ 1349s] FAILED sparse/tests/test_base.py::TestLIL::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestLIL::test_mu - RuntimeWarning: invalid ... [ 1349s] FAILED sparse/tests/test_base.py::TestCOO::test_add_sub - RuntimeWarning: inv... [ 1349s] FAILED sparse/tests/test_base.py::TestCOO::test_mu - RuntimeWarning: invalid ... [ 1349s] = 104 failed, 37539 passed, 2571 skipped, 131 xfailed, 13 xpassed in 1270.70s (0:21:10) =