jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/690384 )
Change subject: [html] "¬" and "¬" are valid html5 named chars ......................................................................
[html] "¬" and "¬" are valid html5 named chars
Fix tests accordingly
see https://html.spec.whatwg.org/multipage/named-characters.html#named-character...
Change-Id: I714b1ec9da156a1605b63de6c46bec3d2260b8c6 --- M tests/page_tests.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/page_tests.py b/tests/page_tests.py index 87c75b2..7e5a7c9 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -1217,8 +1217,8 @@
def test_invalid_entities(self): """Test texts with invalid entities.""" - self.assertEqual(pywikibot.page.html2unicode('A¬aname;O'), - 'A¬aname;O') + self.assertEqual(pywikibot.page.html2unicode('A&invalidname;O'), + 'A&invalidname;O') self.assertEqual(pywikibot.page.html2unicode('Af;O'), 'Af;O') self.assertEqual(pywikibot.page.html2unicode('f'), 'f') self.assertEqual(pywikibot.page.html2unicode('py'), 'py')
pywikibot-commits@lists.wikimedia.org