Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27e4bb9

Browse files
committed
update tox.ini to use pytest instead of nose
1 parent dfaa28b commit 27e4bb9

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tox.ini

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
envlist = lint, py27, py35, py36, py37, py38
1212

1313
[testenv]
14-
commands = nosetests -v --with-doctest test/ tabulate.py
14+
commands = pytest -v --doctest-modules --ignore benchmark.py
1515
deps =
16-
nose
16+
pytest
1717
passenv =
1818
CURL_CA_BUNDLE
1919
REQUESTS_CA_BUNDLE
@@ -26,73 +26,73 @@ deps =
2626

2727
[testenv:py27-extra]
2828
basepython = python2.7
29-
commands = nosetests -v --with-doctest test/ tabulate.py
29+
commands = pytest -v --doctest-modules --ignore benchmark.py
3030
deps =
31-
nose
31+
pytest
3232
numpy
3333
pandas
3434
wcwidth
3535

3636

3737
[testenv:py35]
3838
basepython = python3.5
39-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
39+
commands = pytest -v --doctest-modules --ignore benchmark.py
4040
deps =
41-
nose
41+
pytest
4242

4343

4444
[testenv:py35-extra]
4545
basepython = python3.5
46-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
46+
commands = pytest -v --doctest-modules --ignore benchmark.py
4747
deps =
48-
nose
48+
pytest
4949
numpy
5050
pandas
5151
wcwidth
5252

5353

5454
[testenv:py36]
5555
basepython = python3.6
56-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
56+
commands = pytest -v --doctest-modules --ignore benchmark.py
5757
deps =
58-
nose
58+
pytest
5959

6060

6161
[testenv:py36-extra]
6262
basepython = python3.6
63-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
63+
commands = pytest -v --doctest-modules --ignore benchmark.py
6464
deps =
65-
nose
65+
pytest
6666
numpy
6767
pandas
6868
wcwidth
6969

7070
[testenv:py37]
7171
basepython = python3.7
72-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
72+
commands = pytest -v --doctest-modules --ignore benchmark.py
7373
deps =
74-
nose
74+
pytest
7575

7676
[testenv:py37-extra]
7777
basepython = python3.7
78-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
78+
commands = pytest -v --doctest-modules --ignore benchmark.py
7979
deps =
80-
nose
80+
pytest
8181
numpy
8282
pandas
8383
wcwidth
8484

8585
[testenv:py38]
8686
basepython = python3.8
87-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
87+
commands = pytest -v --doctest-modules --ignore benchmark.py
8888
deps =
89-
nose
89+
pytest
9090

9191
[testenv:py38-extra]
9292
basepython = python3.8
93-
commands = nosetests -v --with-doctest -i 'py3test_*' test/ tabulate.py
93+
commands = pytest -v --doctest-modules --ignore benchmark.py
9494
deps =
95-
nose
95+
pytest
9696
numpy
9797
pandas
9898
wcwidth

0 commit comments

Comments
 (0)