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
pywikibot-commits@lists.wikimedia.org