jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/959270 )

Change subject: [tests] fix unittest call
......................................................................

[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(-)

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




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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/959270
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: I585f124233c778352ce3353ab20a01212ae50855
Gerrit-Change-Number: 959270
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