summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Cassereau <84033440+ncassereau-idris@users.noreply.github.com>2022-09-27 15:17:53 +0200
committerGitHub <noreply@github.com>2022-09-27 15:17:53 +0200
commite433775c2015eb85c2683b6955618c2836f001bc (patch)
tree2f0f950efeeed87cad27301a3852a6272550ad7f /test
parentb295ffccc95149c1d63e805e1ca6f027a4071e2a (diff)
[MRG] Crash when computing weightless Hamming distance & Doc build (#402)
* Bug solve * Releases.md updated * pep8 * attempt to solve docs building bug * releases.md
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 3cfd295..19b6365 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -143,6 +143,7 @@ def test_dist():
for metric in metrics_w:
print(metric)
ot.dist(x, x, metric=metric, p=3, w=np.random.random((2, )))
+ ot.dist(x, x, metric=metric, p=3, w=None) # check that not having any weight does not cause issues
for metric in metrics:
print(metric)
ot.dist(x, x, metric=metric, p=3)