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
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1154379?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5974ab240bd4d91df7e86e4dec19c78e69a11e94
Gerrit-Change-Number: 1154379
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]