We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab65f86 commit a37e52eCopy full SHA for a37e52e
test/test_ot.py
@@ -140,17 +140,17 @@ def test_warnings():
140
with warnings.catch_warnings(record=True) as w:
141
warnings.simplefilter("always")
142
print('Computing {} EMD '.format(1))
143
- G = ot.emd(a, b, M, numItermax=1)
+ ot.emd(a, b, M, numItermax=1)
144
assert "numItermax" in str(w[-1].message)
145
assert len(w) == 1
146
a[0] = 100
147
print('Computing {} EMD '.format(2))
148
- G = ot.emd(a, b, M)
+ ot.emd(a, b, M)
149
assert "infeasible" in str(w[-1].message)
150
assert len(w) == 2
151
a[0] = -1
152
153
154
155
assert len(w) == 3
156
0 commit comments