summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2019-07-03 14:34:13 +0200
committerGitHub <noreply@github.com>2019-07-03 14:34:13 +0200
commit952503e02b1fc9bdf0811b937baacca57e4a98f1 (patch)
treec5b1b8f10eaee4c2ecaa12f629255489c2481590 /test
parent8b3927bb5e8935c3dbddf054f054dc0c036fbdfe (diff)
parent7402d344240ce94e33c53daff419d4356278d48f (diff)
Merge pull request #88 from rflamary/doc_modules
[MRG] Update documentation and add quick start guide
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():