Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1217855?usp=email )
Change subject: tests: Force GIL "off" due to mwparserfromhell issue as
suggested by warning
......................................................................
tests: Force GIL "off" due to mwparserfromhell issue as suggested by warning
Force GIL "off" as suggested by the RuntimeWarning for threading free Python:
RuntimeWarning: The global interpreter lock (GIL) has been enabled to load
module 'mwparserfromhell.parser._tokenizer', which has not declared that it
can run safely without the GIL. To override this behavior and keep the GIL
disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
Bug: T412624
Change-Id: Iff74c2228aa73a868551cba9b45bdc807841a64b
---
M .github/workflows/pywikibot-ci.yml
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/.github/workflows/pywikibot-ci.yml
b/.github/workflows/pywikibot-ci.yml
index 6bbb9aa..cda59c6 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -117,6 +117,8 @@
timeout-minutes: 45
env:
PYWIKIBOT_TEST_NO_RC: ${{ (matrix.site == 'wikisource:zh' ||
matrix.test_no_rc) && 1 || 0 }}
+ # Force GIL "off" due to mwparserfromhell issue as suggested by
warning in T412624
+ PYTHON_GIL: ${{ endsWith(matrix.python-version, 't') && '0' || '1' }}
run: |
python pwb.py version
if [ ${{matrix.site || 0}} != 'wikisource:zh' ]; then
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1217855?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: Iff74c2228aa73a868551cba9b45bdc807841a64b
Gerrit-Change-Number: 1217855
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]