Page MenuHomePhabricator

test_one_similar_script of pwb_tests.TestPwb sometimes fails
Closed, ResolvedPublicBUG REPORT

Description

test_one_similar_script of pwb_tests.TestPwb sometimes fails.

The test intermittently fails with a TimeoutExpired exception. The failure has been observed with Python 3.9 and PyPy 3.11, while other Python versions may pass. It is currently unclear whether the failure is Python-version dependent.

18:17:37 FAIL: test_one_similar_script (tests.pwb_tests.TestPwb)
18:17:37 Test shell.py script call which gives one similar result.
18:17:37 ----------------------------------------------------------------------
18:17:37 Traceback (most recent call last):
18:17:37   File "/src/tests/pwb_tests.py", line 118, in test_one_similar_script
18:17:37     self.assertIsNone(stream['timeout'])
18:17:37 AssertionError: TimeoutExpired(['/src/.tox/deeptest-py39/bin/python', '/src/pwb.py', 'hello'], 10) is not None

Details

Event Timeline

Xqt triaged this task as High priority.Aug 8 2026, 4:22 PM

Change #1323795 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] tests: Fix TestPwb.test_one_similar_script test

https://gerrit.wikimedia.org/r/1323795

Xqt changed the task status from Open to In Progress.Aug 9 2026, 9:26 AM
Xqt claimed this task.

Change #1323795 merged by jenkins-bot:

[pywikibot/core@master] tests: Fix TestPwb.test_one_similar_script test

https://gerrit.wikimedia.org/r/1323795