diff --git a/.travis.yml b/.travis.yml index d91ffde6e..a6a7bcce7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ python: install: - pip install -e .[develop] script: -- test -n "$RUN_FLAKE8" || nosetests --with-doctest +- test -n "$RUN_FLAKE8" || pytest src tests --doctest-modules - test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401 src/ tests setup.py sudo: false git: diff --git a/setup.py b/setup.py index e1b79b9bb..7e03a8ddf 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ EXTRA_REQUIRES = dict( develop=[ # Testing dependencies "mock>=2.0.0,<3", - "nose>=1.3.7,<1.4", + "pytest>=4.2.1,<5.0", "ddt", # linter diff --git a/tox.ini b/tox.ini index a4432a09b..dbd0497c9 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,9 @@ envlist = py27,py37,flake8 passenv = APPDATA deps = mock>=2.0.0,<3 - nose>=1.3.7,<1.4 + pytest>=4.2.1,<5.0 ddt -commands = nosetests --with-doctest [] +commands = pytest src tests --doctest-modules [] [testenv:flake8] basepython = python3