jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/656432 )
Change subject: [bugfix] Fix UnboundLocalError in aspects in CheckHostnameMixin
......................................................................
[bugfix] Fix UnboundLocalError in aspects in CheckHostnameMixin
Bug: T272153
Change-Id: I4d1e2cba5f8cf6de7a60918a3092c050a4b52b4b
---
M tests/aspects.py
1 file changed, 1 insertion(+), 4 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/aspects.py b/tests/aspects.py
index ff35577..323ac86 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Test aspects to allow fine grained control over what tests are executed.
@@ -7,7 +6,7 @@
mixin to show cache usage is included.
"""
#
-# (C) Pywikibot team, 2014-2020
+# (C) Pywikibot team, 2014-2021
#
# Distributed under the terms of the MIT license.
#
@@ -450,7 +449,6 @@
else:
continue
- e = None
try:
if '://' not in hostname:
hostname = 'http://' + hostname
@@ -464,7 +462,6 @@
.format(cls.__name__, hostname))
pywikibot.exception(e, tb=True)
- if e:
cls._checked_hostnames[hostname] = e
raise unittest.SkipTest(
'{}: hostname {} failed: {}'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/656432
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: I4d1e2cba5f8cf6de7a60918a3092c050a4b52b4b
Gerrit-Change-Number: 656432
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits