summaryrefslogtreecommitdiff
path: root/numpy/linalg
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-06-26 12:52:52 -0600
committerGitHub <noreply@github.com>2022-06-26 12:52:52 -0600
commitb65f0b7b8ba7e80b65773e06aae22a8369678868 (patch)
tree596a6389b54c72b2ca5a9a66d974ef0ab5b2a4af /numpy/linalg
parent11e465e30823f044887d3f5e2f648007ce0077c2 (diff)
parent7dcfaafa0b78618a6ec2a5279090729f7ec583f0 (diff)
downloadnumpy-b65f0b7b8ba7e80b65773e06aae22a8369678868.tar.gz
Merge pull request #21626 from seberg/weak-scalars
API: Introduce optional (and partial) NEP 50 weak scalar logic
Diffstat (limited to 'numpy/linalg')
-rw-r--r--numpy/linalg/tests/test_linalg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py
index ebbd92539..f871a5f8e 100644
--- a/numpy/linalg/tests/test_linalg.py
+++ b/numpy/linalg/tests/test_linalg.py
@@ -1803,9 +1803,9 @@ class TestCholesky:
c = np.linalg.cholesky(a)
b = np.matmul(c, c.transpose(t).conj())
- assert_allclose(b, a,
- err_msg=f'{shape} {dtype}\n{a}\n{c}',
- atol=500 * a.shape[0] * np.finfo(dtype).eps)
+ with np._no_nep50_warning():
+ atol = 500 * a.shape[0] * np.finfo(dtype).eps
+ assert_allclose(b, a, atol=atol, err_msg=f'{shape} {dtype}\n{a}\n{c}')
def test_0_size(self):
class ArraySubclass(np.ndarray):