jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1154379?usp=email )
Change subject: Style: Don't use "else" after "raise" statement ......................................................................
Style: Don't use "else" after "raise" statement
Change-Id: I5974ab240bd4d91df7e86e4dec19c78e69a11e94 --- M tests/gui_tests.py 1 file changed, 2 insertions(+), 3 deletions(-)
Approvals: jenkins-bot: Verified Matěj Suchánek: Looks good to me, approved
diff --git a/tests/gui_tests.py b/tests/gui_tests.py index 99be655..2413c80 100755 --- a/tests/gui_tests.py +++ b/tests/gui_tests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Tests for the Tk UI.""" # -# (C) Pywikibot team, 2008-2024 +# (C) Pywikibot team, 2008-2025 # # Distributed under the terms of the MIT license. # @@ -94,8 +94,7 @@ dialog = tkinter.Tk() except RuntimeError as e: raise unittest.SkipTest(f'Skipping due to T380732 - {e}') - else: - dialog.destroy() + dialog.destroy()
from pywikibot.userinterfaces.gui import EditBoxWindow, Tkdialog
pywikibot-commits@lists.wikimedia.org