diff options
author | RĂ©mi Flamary <remi.flamary@gmail.com> | 2019-07-03 14:34:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-03 14:34:13 +0200 |
commit | 952503e02b1fc9bdf0811b937baacca57e4a98f1 (patch) | |
tree | c5b1b8f10eaee4c2ecaa12f629255489c2481590 /test | |
parent | 8b3927bb5e8935c3dbddf054f054dc0c036fbdfe (diff) | |
parent | 7402d344240ce94e33c53daff419d4356278d48f (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.py | 3 |
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(): |