Threading free Python throws a warning in script_tests about unsafe mwparserfromhell:
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.
See also: https://github.com/earwig/mwparserfromhell/issues/343
======================================================================
FAIL: test__login (tests.script_tests.TestScriptHelp.test__login)
Test running login -help.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/script_tests.py", line 261, in test_script
self.assertIn('Use -help for further information.',
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stderr_other)
^^^^^^^^^^^^^
AssertionError: 'Use -help for further information.' not found in ["WARNING: <frozen importlib._bootstrap>:491: 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.", '']
======================================================================
FAIL: test_add_text (tests.script_tests.TestScriptHelp.test_add_text)
Test running add_text -help.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/script_tests.py", line 261, in test_script
self.assertIn('Use -help for further information.',
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stderr_other)
^^^^^^^^^^^^^
AssertionError: 'Use -help for further information.' not found in ["WARNING: <frozen importlib._bootstrap>:491: 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.", '']
======================================================================
FAIL: test_archivebot (tests.script_tests.TestScriptHelp.test_archivebot)
Test running archivebot -help.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/script_tests.py", line 261, in test_script
self.assertIn('Use -help for further information.',
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stderr_other)
^^^^^^^^^^^^^
AssertionError: 'Use -help for further information.' not found in ["WARNING: <frozen importlib._bootstrap>:491: 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.", '']
======================================================================
FAIL: test_basic (tests.script_tests.TestScriptHelp.test_basic)
Test running basic -help.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/script_tests.py", line 261, in test_script
self.assertIn('Use -help for further information.',
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stderr_other)
^^^^^^^^^^^^^
AssertionError: 'Use -help for further information.' not found in ["WARNING: <frozen importlib._bootstrap>:491: 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.", '']