diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-06-24 20:04:02 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-06-24 20:04:02 (GMT) |
| commit | becb70c329eb7202cfb1cf2c9bbd8979e3662949 (patch) | |
| tree | 24382d014ca9a5fdb2ff86659ffdc70347e8ae39 /Lib/test/test_htmlparser.py | |
| parent | 3c0db67bf349cc379ad4d096cfb5bc0854378e95 (diff) | |
| parent | 46495182d0fc58b519d10315f1bf392f08f33a2e (diff) | |
| download | cpython-becb70c329eb7202cfb1cf2c9bbd8979e3662949.zip cpython-becb70c329eb7202cfb1cf2c9bbd8979e3662949.tar.gz cpython-becb70c329eb7202cfb1cf2c9bbd8979e3662949.tar.bz2 | |
Merge heads.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
| -rw-r--r-- | Lib/test/test_htmlparser.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 64a4f5d..c5d878d 100644 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -456,7 +456,7 @@ class HTMLParserTolerantTestCase(HTMLParserStrictTestCase): self._run_check('<form action="/xxx.php?a=1&b=2&", ' 'method="post">', [ ('starttag', 'form', - [('action', '/xxx.php?a=1&b=2&'), + [('action', '/xxx.php?a=1&b=2&'), (',', None), ('method', 'post')])]) def test_weird_chars_in_unquoted_attribute_values(self): @@ -541,6 +541,11 @@ class HTMLParserTolerantTestCase(HTMLParserStrictTestCase): self.assertEqual(p.unescape('&'),'&') # see #12888 self.assertEqual(p.unescape('{ ' * 1050), '{ ' * 1050) + # see #15156 + self.assertEqual(p.unescape('ÉricÉric' + '&alphacentauriαcentauri'), + 'ÉricÉric&alphacentauriαcentauri') + self.assertEqual(p.unescape('&co;'), '&co;') def test_broken_comments(self): html = ('<! not really a comment >' |
