diff options
author | Matthias Klose <doko@ubuntu.com> | 2009-04-04 12:51:52 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2009-04-04 12:51:52 (GMT) |
commit | ee13a2ecf4410183cfecc256bcf9df3a2321659a (patch) | |
tree | 7404a1097144be75cba5ebf1a4cd2de491ffe39c /Lib/test | |
parent | c9da90a74e0df57c8562723139d30adf78faac6f (diff) | |
download | cpython-ee13a2ecf4410183cfecc256bcf9df3a2321659a.zip cpython-ee13a2ecf4410183cfecc256bcf9df3a2321659a.tar.gz cpython-ee13a2ecf4410183cfecc256bcf9df3a2321659a.tar.bz2 |
Merged revisions 70906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70906 | georg.brandl | 2009-04-01 00:11:53 +0200 (Mi, 01 Apr 2009) | 1 line
#1651995: fix _convert_ref for non-ASCII characters.
........
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_sgmllib.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py index 34fd7f0..081e0e1 100644 --- a/Lib/test/test_sgmllib.py +++ b/Lib/test/test_sgmllib.py @@ -373,6 +373,15 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' if len(data) != CHUNK: break + def test_only_decode_ascii(self): + # SF bug #1651995, make sure non-ascii character references are not decoded + s = '<signs exclamation="!" copyright="©" quoteleft="‘">' + self.check_events(s, [ + ('starttag', 'signs', + [('exclamation', '!'), ('copyright', '©'), + ('quoteleft', '‘')]), + ]) + # XXX These tests have been disabled by prefixing their names with # an underscore. The first two exercise outstanding bugs in the # sgmllib module, and the third exhibits questionable behavior |