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' }}