Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/913674 )

Change subject: [tests] giveup running tests via setup
......................................................................

[tests] giveup running tests via setup

Complete tests can be runned via pytest or unittest. It is not
necessary to run it via setup. pytest-runner has a deprecation
notice and the test command is removed from setuptools in 2019.

Bug: T335645
Change-Id: I0c04a554efcaf21aefca6783198e89f8585d3893
---
M dev-requirements.txt
M tests/README.rst
2 files changed, 16 insertions(+), 10 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/dev-requirements.txt b/dev-requirements.txt
index 97309d8..8df802e 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -5,7 +5,6 @@
 pytest-cov >= 3.0.0; python_version>="3.10"
 pytest-cov >= 2.11.1; python_version<"3.10"
 pytest-timeout
-pytest-runner
 pytest-subtests >= 0.3.2
 pytest-attrib>=0.1.3

diff --git a/tests/README.rst b/tests/README.rst
index cd07199..bff07ea 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -22,14 +22,6 @@

 The entire suite of tests may be run in the following ways from the root 
directory:

-**setup.py**
-
-::
-
-    pip install pytest
-    pip install pytest-runner
-    python setup.py pytest
-
 **Module unittest**

 ::
@@ -40,7 +32,8 @@

 ::

-    py.test
+    pip install pytest
+    pytest

 **tox**


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/913674
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0c04a554efcaf21aefca6783198e89f8585d3893
Gerrit-Change-Number: 913674
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to