(self)
| 2524 | |
| 2525 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 2526 | def test_expat224_utf8_bug_file(self): |
| 2527 | with open(UTF8_BUG_XMLFILE, 'rb') as fp: |
| 2528 | raw = fp.read() |
| 2529 | root = ET.fromstring(raw) |
| 2530 | xmlattr = root.get('b') |
| 2531 | |
| 2532 | # "Parse" manually the XML file to extract the value of the 'b' |
| 2533 | # attribute of the <a b='xxx' /> XML element |
| 2534 | text = raw.decode('utf-8').strip() |
| 2535 | text = text.replace('\r\n', ' ') |
| 2536 | text = text[6:-4] |
| 2537 | self.assertEqual(root.get('b'), text) |
| 2538 | |
| 2539 | def test_39495_treebuilder_start(self): |
| 2540 | self.assertRaises(TypeError, ET.TreeBuilder().start, "tag") |
nothing calls this directly
no test coverage detected