jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/607870 )
Change subject: [IMPR] Decrease nested try statements ......................................................................
[IMPR] Decrease nested try statements
Change-Id: Idbe7dc574af1b6a2222915b7fe46b1061016bddd --- M tests/ui_tests.py 1 file changed, 4 insertions(+), 5 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/ui_tests.py b/tests/ui_tests.py index 0c01d86..6337eaa 100644 --- a/tests/ui_tests.py +++ b/tests/ui_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests for the user interface.""" # -# (C) Pywikibot team, 2008-2019 +# (C) Pywikibot team, 2008-2020 # # Distributed under the terms of the MIT license. # @@ -882,9 +882,8 @@
if __name__ == '__main__': # pragma: no cover try: - try: - unittest.main() - except SystemExit: - pass + unittest.main() + except SystemExit: + pass finally: unpatch()
pywikibot-commits@lists.wikimedia.org