Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1175570?usp=email )
Change subject: Revert "Tests: cover wrapper.run_python_file function which
invokes scripts"
......................................................................
Revert "Tests: cover wrapper.run_python_file function which invokes scripts"
This reverts commit 998cc1168694b48eff99247dff7fcc5c78aab179.
Reason for revert:no improvements
Change-Id: I1f1169937a594cc86483a2be79ff72d5873b4995
---
M .github/workflows/pywikibot-ci.yml
M pywikibot/scripts/wrapper.py
2 files changed, 0 insertions(+), 9 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/.github/workflows/pywikibot-ci.yml
b/.github/workflows/pywikibot-ci.yml
index f64cf69..46f51d8 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -130,7 +130,6 @@
continue-on-error: true
timeout-minutes: 90
env:
- COVERAGE_PROCESS_START: pyproject.toml
PYWIKIBOT_TEST_NO_RC: ${{ (matrix.site == 'wikisource:zh' ||
matrix.test_no_rc) && 1 || 0 }}
run: |
python pwb.py version
diff --git a/pywikibot/scripts/wrapper.py b/pywikibot/scripts/wrapper.py
index 656decb..d4b0081 100755
--- a/pywikibot/scripts/wrapper.py
+++ b/pywikibot/scripts/wrapper.py
@@ -125,14 +125,6 @@
:param package: The package of the script. Used for checks.
:type package: Optional[module]
"""
- if os.environ.get('PYWIKIBOT_TEST_RUNNING', '0') == '1':
- try:
- import coverage
- except ModuleNotFoundError:
- pass
- else:
- coverage.process_startup()
-
# Create a module to serve as __main__
old_main_mod = sys.modules['__main__']
main_mod = types.ModuleType('__main__')
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1175570?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I1f1169937a594cc86483a2be79ff72d5873b4995
Gerrit-Change-Number: 1175570
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]