Page MenuHomePhabricator

ui_tests.TestTerminalOutput fails with Python 3.11
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):
pwb -lang:en ui_tests -v TestTerminalOutput

What happens?:

======================================================================
FAIL: test_exception_tb (tests.ui_tests.TestTerminalOutput)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pwb/pwb/tests/ui_tests.py", line 215, in test_exception_tb
    self.assertTrue(stderrlines[4].endswith(': Testing Exception'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Pywikibot 7.0.0

Event Timeline

Xqt triaged this task as High priority.Dec 4 2021, 10:55 AM
Xqt updated the task description. (Show Details)

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

[pywikibot/core@master] [tests] Show a more informative message with failing test

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

Change 743564 merged by jenkins-bot:

[pywikibot/core@master] [tests] Show a more informative message with failing test

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

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

[pywikibot/core@master] [bugfix] Adjust traceback line for Python 3.11

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

Change 743570 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Adjust traceback line for Python 3.11

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

Xqt claimed this task.