(self)
| 905 | |
| 906 | @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing' |
| 907 | def test_expat_text_file(self): |
| 908 | parser = create_parser() |
| 909 | result = BytesIO() |
| 910 | xmlgen = XMLGenerator(result) |
| 911 | |
| 912 | parser.setContentHandler(xmlgen) |
| 913 | with open(TEST_XMLFILE, 'rt', encoding='iso-8859-1') as f: |
| 914 | parser.parse(f) |
| 915 | |
| 916 | self.assertEqual(result.getvalue(), xml_test_out) |
| 917 | |
| 918 | @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing' |
| 919 | @requires_nonascii_filenames |
nothing calls this directly
no test coverage detected