jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] `setup.py test` is being deprecated

Bug: T243224
Change-Id: I513b9a412ff14d6d7d0de7e45a61c164554c7a50
---
M .appveyor.yml
M .travis.yml
M tests/README.rst
M tox.ini
4 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/.appveyor.yml b/.appveyor.yml
index fd2275b..ab99715 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -106,7 +106,7 @@
- ps: "[IO.File]::AppendAllText($env:PYWIKIBOT_USER_CONFIG, 'max_retries = 2; maximum_GET_length = 5000; transliteration_target = None;')"

- set PYSETUP_TEST_NO_UI=1
- - "%CMD_IN_ENV% coverage run setup.py test"
+ - "%CMD_IN_ENV% coverage run -m unittest -vv"

on_finish:
- codecov
diff --git a/.travis.yml b/.travis.yml
index 00b7242..a37c45c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -108,7 +108,7 @@
python setup.py pytest --addopts="-vvv -s --timeout=$TEST_TIMEOUT --cov=. -rsxX" ;
fi
else
- coverage run setup.py test ;
+ coverage run -m unittest -vv ;
fi

after_success:
diff --git a/tests/README.rst b/tests/README.rst
index 56984ec..d8935c7 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -28,10 +28,6 @@

::

- python setup.py test
-
-::
-
python setup.py nosetests --tests tests

::
@@ -113,7 +109,7 @@

::

- PYWIKIBOT_TEST_MODULES=api,site python setup.py test
+ PYWIKIBOT_TEST_MODULES=api,site python -m unittest -vv


Travis CI
@@ -199,7 +195,7 @@
5. push changes into the forked git repository
6. watch the build at https://circleci.com/gh/<username>/pywikibot

-PYWIKIBOT_NO_USER_CONFIG=2 is needed because 'python setup.py test' is run.
+PYWIKIBOT_NO_USER_CONFIG=2 is needed because 'python -m unittest -vv' is run.

TOXENV=py27,py34 is a workaround because CircleCI runs 'tox',
but there is a bug in the CircleCI default 'py26' implementation.
diff --git a/tox.ini b/tox.ini
index 8a31790..574a033 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,7 +26,7 @@
usedevelop = True
commands =
flake8: flake8 --doctests {posargs}
- test: python setup.py test
+ test: python -m unittest -vv

fasttest: python -W error::UserWarning -m generate_user_files -family:wikipedia -lang:test -v
fasttest: nosetests --version

To view, visit change 569360. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I513b9a412ff14d6d7d0de7e45a61c164554c7a50
Gerrit-Change-Number: 569360
Gerrit-PatchSet: 2
Gerrit-Owner: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)