summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2019-07-03 13:31:55 +0200
committerRémi Flamary <remi.flamary@gmail.com>2019-07-03 13:31:55 +0200
commitd3236cf0cab000b5604f8ede9ebcbdc19d8c213f (patch)
treefe7c1499c3c8afa5c2edd82758c2e643c16cd883 /test
parente26aa8ee4498f19248f8dcc9868ec55b62eb35e5 (diff)
test raise with pytets in test_emd_1d_emd2_1d
Diffstat (limited to 'test')
-rw-r--r--test/test_ot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_ot.py b/test/test_ot.py
index ac86602..dacae0a 100644
--- a/test/test_ot.py
+++ b/test/test_ot.py
@@ -72,7 +72,8 @@ def test_emd_1d_emd2_1d():
# check AssertionError is raised if called on non 1d arrays
u = np.random.randn(n, 2)
v = np.random.randn(m, 2)
- np.testing.assert_raises(AssertionError, ot.emd_1d, u, v, [], [])
+ with pytest.raises(AssertionError):
+ ot.emd_1d(u, v, [], [])
def test_wass_1d():