jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1193570?usp=email )
Change subject: [cleanup] remove Python 2 code in aspects.py
......................................................................
[cleanup] remove Python 2 code in aspects.py
Change-Id: I788c55b803c1868041d1b3756ce102af652670a3
---
M tests/aspects.py
1 file changed, 1 insertion(+), 4 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/aspects.py b/tests/aspects.py
index e980ea9..4ddcc35 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -1542,6 +1542,7 @@
r'(; use .* instead)?\.')
source_adjustment_skips = [
+ unittest.case._AssertRaisesBaseContext,
unittest.case._AssertRaisesContext,
TestCase.assertRaises,
TestCase.assertRaisesRegex,
@@ -1552,10 +1553,6 @@
# Require an instead string
INSTEAD = object()
- # Python 3 component in the call stack of _AssertRaisesContext
- if hasattr(unittest.case, '_AssertRaisesBaseContext'):
- source_adjustment_skips.append(unittest.case._AssertRaisesBaseContext)
-
def __init__(self, *args, **kwargs) -> None:
"""Initializer."""
super().__init__(*args, **kwargs)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1193570?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I788c55b803c1868041d1b3756ce102af652670a3
Gerrit-Change-Number: 1193570
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]