jenkins-bot submitted this change.

View Change


Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] fix unittest call

Change-Id: I585f124233c778352ce3353ab20a01212ae50855
---
M .github/workflows/pywikibot-ci.yml
M .github/workflows/login_tests-ci.yml
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml
index caad57d..e222ff8 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -135,7 +135,7 @@
timeout-minutes: 2
run: |
python pwb.py version
- unittest -vv tests/site_login_logout_tests.py
+ python -m unittest -vv tests/site_login_logout_tests.py

- name: Show coverage statistics
if: ${{ matrix.python-version != '3.13-dev' }}
diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index 48650e4..bb71e70 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -165,7 +165,7 @@
PYWIKIBOT_TEST_PROD_ONLY: ${{ matrix.test_prod_only && 1 || 0 }}
run: |
python pwb.py version
- unittest discover -vv -p \"*_tests.py\";
+ python -m unittest discover -vv -p \"*_tests.py\";

- name: Show coverage statistics
if: ${{ matrix.python-version != '3.13-dev' }}

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I585f124233c778352ce3353ab20a01212ae50855
Gerrit-Change-Number: 959270
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged