summaryrefslogtreecommitdiff
path: root/numpy/linalg/tests
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-05-28 12:19:59 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-06-15 11:42:02 -0700
commitf8fc8d2cc3944ccd4615e93f61ca4c689eb5c844 (patch)
treeb9cb10b1a062aecea293650ec8fd3a8ad3bc514e /numpy/linalg/tests
parent0ec8c0fb91b651e1ee1f070ccbb4f222b3ee23db (diff)
downloadnumpy-f8fc8d2cc3944ccd4615e93f61ca4c689eb5c844.tar.gz
TST: Ignore promotion warning in linalg test calculating atol
Diffstat (limited to 'numpy/linalg/tests')
-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..39eb10b92 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):