Xqt added a comment.
The related problem is given with Python 2:
auto-run script unresponsive after 5 seconds FAIL
======================================================================
FAIL: test_welcome (tests.script_tests.TestScriptSimulate)
Test running welcome -simulate.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\script_tests.py", line 310, in testScript
self.assertIn(result['exit_code'], exit_codes)
AssertionError: 1 not found in [0, -9]
----------------------------------------------------------------------
Ran 4 tests in 9.647s
FAILED (failures=1)
Unfortunately the test fails with TimeoutExpired with Python 3(.8)
======================================================================
ERROR: test_welcome (tests.script_tests.TestScriptSimulate)
Test running welcome -simulate.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\script_tests.py", line 243, in testScript
result = execute_pwb(cmd, data_in, timeout=timeout,
File "C:\pwb\GIT\core\tests\utils.py", line 699, in execute_pwb
return execute(command=command + args,
File "C:\pwb\GIT\core\tests\utils.py", line 672, in execute
stdout_data, stderr_data = p.communicate(timeout=timeout)
File "C:\Python38\lib\subprocess.py", line 1024, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "C:\Python38\lib\subprocess.py", line 1397, in _communicate
raise TimeoutExpired(self.args, orig_timeout)
subprocess.TimeoutExpired: Command '['C:\\Python38\\python.exe',
'C:\\pwb\\GIT\\core\\pwb.py', 'welcome', '-simulate']' timed out after 5 seconds
----------------------------------------------------------------------
Ran 4 tests in 9.090s
TASK DETAIL
https://phabricator.wikimedia.org/T95385
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, XZise, gerritbot, Aklapper, jayvdb, pywikibot-bugs-list, Zkhalido,
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, mys_721tx, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs