jenkins-bot merged this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[IMPR] Decrease nested try statements

Change-Id: Idbe7dc574af1b6a2222915b7fe46b1061016bddd
---
M tests/ui_tests.py
1 file changed, 4 insertions(+), 5 deletions(-)

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()

To view, visit change 607870. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idbe7dc574af1b6a2222915b7fe46b1061016bddd
Gerrit-Change-Number: 607870
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw@arctus.nl>
Gerrit-Reviewer: jenkins-bot (75)