Xqt submitted this change.
[bugfix] Fix subTest
Change-Id: I2ee36b467a9fb95b94bdb93570bf5bfa7810b8d9
---
M tests/textlib_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)
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',
To view, visit change 636170. To unsubscribe, or for help writing mail filters, visit settings.