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