(self)
| 2303 | b'<tag \xc3\xa4ttr="v\xc3\xa4lue" />') |
| 2304 | |
| 2305 | def test_bug_xmltoolkit54(self): |
| 2306 | # problems handling internally defined entities |
| 2307 | |
| 2308 | e = ET.XML("<!DOCTYPE doc [<!ENTITY ldots '舰'>]>" |
| 2309 | '<doc>&ldots;</doc>') |
| 2310 | self.assertEqual(serialize(e, encoding="us-ascii"), |
| 2311 | b'<doc>舰</doc>') |
| 2312 | self.assertEqual(serialize(e), '<doc>\u8230</doc>') |
| 2313 | |
| 2314 | def test_bug_xmltoolkit55(self): |
| 2315 | # make sure we're reporting the first error, not the last |
nothing calls this directly
no test coverage detected