summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAntoine Rolet <antoine.rolet@gmail.com>2017-09-07 14:38:53 +0900
committerAntoine Rolet <antoine.rolet@gmail.com>2017-09-07 14:38:53 +0900
commita37e52e64f300fa0165a58932d5ac0ef1dd8c6f7 (patch)
tree5e14f6e4ee088449ff1e135559d631b61e6c59b2 /test
parentab65f86304b03a967054eeeaf73b8c8277618d65 (diff)
Removed unused variable declaration
Diffstat (limited to 'test')
-rw-r--r--test/test_ot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_ot.py b/test/test_ot.py
index feadef4..cf5839e 100644
--- a/test/test_ot.py
+++ b/test/test_ot.py
@@ -140,17 +140,17 @@ def test_warnings():
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
print('Computing {} EMD '.format(1))
- G = ot.emd(a, b, M, numItermax=1)
+ ot.emd(a, b, M, numItermax=1)
assert "numItermax" in str(w[-1].message)
assert len(w) == 1
a[0] = 100
print('Computing {} EMD '.format(2))
- G = ot.emd(a, b, M)
+ ot.emd(a, b, M)
assert "infeasible" in str(w[-1].message)
assert len(w) == 2
a[0] = -1
print('Computing {} EMD '.format(2))
- G = ot.emd(a, b, M)
+ ot.emd(a, b, M)
assert "infeasible" in str(w[-1].message)
assert len(w) == 3