summaryrefslogtreecommitdiff
path: root/test/test_smooth.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2018-05-31 12:52:36 +0200
committerRémi Flamary <remi.flamary@gmail.com>2018-05-31 12:52:36 +0200
commit1d34716aa30763a1a36742a3f6acc9201bef8d7c (patch)
treed2a9b09832941dc45ed2d72595eed9b5d9722d67 /test/test_smooth.py
parent6a048fe809823e41d2b57dbcc22c12bcb7490674 (diff)
remove unused variable
Diffstat (limited to 'test/test_smooth.py')
-rw-r--r--test/test_smooth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_smooth.py b/test/test_smooth.py
index 7aceb42..2afa4f8 100644
--- a/test/test_smooth.py
+++ b/test/test_smooth.py
@@ -20,7 +20,7 @@ def test_smooth_ot_dual():
M = ot.dist(x, x)
- with pytest.raises(NotImplementedError) as e_info:
+ with pytest.raises(NotImplementedError):
Gl2, log = ot.smooth.smooth_ot_dual(u, u, M, 1, reg_type='none')
Gl2, log = ot.smooth.smooth_ot_dual(u, u, M, 1, reg_type='l2', log=True, stopThr=1e-10)
@@ -55,7 +55,7 @@ def test_smooth_ot_semi_dual():
M = ot.dist(x, x)
- with pytest.raises(NotImplementedError) as e_info:
+ with pytest.raises(NotImplementedError):
Gl2, log = ot.smooth.smooth_ot_semi_dual(u, u, M, 1, reg_type='none')
Gl2, log = ot.smooth.smooth_ot_semi_dual(u, u, M, 1, reg_type='l2', log=True, stopThr=1e-10)