Skip to content

Commit 38cf5b8

Browse files
committed
Revert "Tests: Enable coverage measurement in subprocesses started by execute_pwb()"
This reverts commit c13928c. Reason for revert: no improvements Change-Id: Ib48240b5e2c47b1db6448ef98fdbf7d3fb850d1a
1 parent f557fa6 commit 38cf5b8

File tree

7 files changed

+0
-12
lines changed

7 files changed

+0
-12
lines changed

.github/workflows/doctest.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
coverage run -m pytest pywikibot --doctest-modules --ignore-glob="*gui.py" --ignore-glob="*memento.py"
6969
- name: Show coverage statistics
7070
run: |
71-
coverage combine
7271
coverage report
7372
- name: Upload coverage to Codecov
7473
uses: codecov/codecov-action@v5

.github/workflows/login_tests-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ jobs:
124124
coverage run -m unittest -vv tests/site_login_logout_tests.py
125125
- name: Show coverage statistics
126126
run: |
127-
coverage combine
128127
coverage report
129128
- name: Upload coverage to Codecov
130129
uses: codecov/codecov-action@v5

.github/workflows/oauth_tests-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
coverage run -m unittest -vv
103103
- name: Show coverage statistics
104104
run: |
105-
coverage combine
106105
coverage report
107106
- name: Upload coverage to Codecov
108107
uses: codecov/codecov-action@v5

.github/workflows/pywikibot-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ jobs:
140140
fi
141141
- name: Show coverage statistics
142142
run: |
143-
coverage combine
144143
coverage report
145144
- name: Upload coverage to Codecov
146145
uses: codecov/codecov-action@v5

.github/workflows/sysop_write_tests-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
coverage run -m pytest -s -r A -a "${{ matrix.attr }}"
6363
- name: Show coverage statistics
6464
run: |
65-
coverage combine
6665
coverage report
6766
- name: Upload coverage to Codecov
6867
uses: codecov/codecov-action@v5

.github/workflows/windows_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ jobs:
7575
coverage run -m unittest discover -vv -p \"*_tests.py\";
7676
- name: Show coverage statistics
7777
run: |
78-
coverage combine
7978
coverage report
8079
- name: Upload coverage to Codecov
8180
uses: codecov/codecov-action@v5

tests/utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,6 @@ def execute_pwb(args: list[str], *,
530530
else:
531531
command.append(_pwb_py)
532532

533-
# Test is running; activate coverage if present
534-
if os.environ.get('PYWIKIBOT_TEST_RUNNING', '0') == '1':
535-
with suppress(ModuleNotFoundError):
536-
import coverage # noqa: F401
537-
command = [command[0], '-m', 'coverage', 'run'] + command[1:]
538-
539533
return execute(command=command + args, data_in=data_in, timeout=timeout)
540534

541535

0 commit comments

Comments
 (0)