Skip to content

Commit 93a74fe

Browse files
committed
Explicit doctest call in travis + removed uneffective doctest in test_ot
1 parent a9b8af1 commit 93a74fe

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ install:
3232
script:
3333
- python setup.py develop
3434
- flake8 examples/ ot/ test/
35-
- python -m pytest -v test/ --cov=ot
35+
- python -m pytest -v test/ ot/ --doctest-modules --cov=ot
3636
# - py.test ot test

test/test_ot.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@
1414
import pytest
1515

1616

17-
def test_doctest():
18-
import doctest
19-
20-
# test lp solver
21-
doctest.testmod(ot.lp, verbose=True)
22-
23-
# test bregman solver
24-
doctest.testmod(ot.bregman, verbose=True)
25-
26-
2717
def test_emd_emd2():
2818
# test emd and emd2 for simple identity
2919
n = 100

0 commit comments

Comments
 (0)