summaryrefslogtreecommitdiff
path: root/test/test_dr.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_dr.py')
-rw-r--r--test/test_dr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_dr.py b/test/test_dr.py
index e3d1e6b..bdb920e 100644
--- a/test/test_dr.py
+++ b/test/test_dr.py
@@ -29,7 +29,7 @@ def test_fda():
projfda(xs)
- assert np.allclose(np.sum(Pfda**2, 0), np.ones(p))
+ np.testing.assert_allclose(np.sum(Pfda**2, 0), np.ones(p))
@pytest.mark.skipif(nogo, reason="Missing modules (autograd or pymanopt)")
@@ -51,4 +51,4 @@ def test_wda():
projwda(xs)
- assert np.allclose(np.sum(Pwda**2, 0), np.ones(p))
+ np.testing.assert_allclose(np.sum(Pwda**2, 0), np.ones(p))