jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/632215 )
Change subject: [4.0] remove Pyhon 2 related code in ui_options_tests.py
......................................................................
[4.0] remove Pyhon 2 related code in ui_options_tests.py
Change-Id: Ic4aca04e3b5bb401371d4204dd33570d45c86b77
---
M tests/ui_options_tests.py
1 file changed, 3 insertions(+), 5 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py
index 62b6bca..2dad2f9 100644
--- a/tests/ui_options_tests.py
+++ b/tests/ui_options_tests.py
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
"""Bot tests for input_choice options."""
#
-# (C) Pywikibot team, 2015-2018
+# (C) Pywikibot team, 2015-2020
#
# Distributed under the terms of the MIT license.
#
-from __future__ import absolute_import, division, unicode_literals
+from contextlib import suppress
from pywikibot import bot, bot_choice
@@ -124,7 +124,5 @@
if __name__ == '__main__': # pragma: no cover
- try:
+ with suppress(SystemExit):
unittest.main()
- except SystemExit:
- pass
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/632215
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic4aca04e3b5bb401371d4204dd33570d45c86b77
Gerrit-Change-Number: 632215
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits