Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/636170 )
Change subject: [bugfix] Fix subTest ......................................................................
[bugfix] Fix subTest
Change-Id: I2ee36b467a9fb95b94bdb93570bf5bfa7810b8d9 --- M tests/textlib_tests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py index 805511c..474ae16 100644 --- a/tests/textlib_tests.py +++ b/tests/textlib_tests.py @@ -288,7 +288,7 @@ for pattern in ('[[Category:{{P1|Foo}}|bar]]', '[[Category:{{P1|{{P2|L33t|Foo}}}}|bar]]', '[[Category:Foo{{!}}bar]]'): - with self.SubTest(pattern=pattern): + with self.subTest(pattern=pattern): self.assertEqual(textlib.getCategoryLinks( pattern, self.site, expand_text=True), [pywikibot.page.Category(self.site, 'Foo',
pywikibot-commits@lists.wikimedia.org