(self)
| 946 | |
| 947 | @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing' |
| 948 | def test_expat_binary_file_int_name(self): |
| 949 | parser = create_parser() |
| 950 | result = BytesIO() |
| 951 | xmlgen = XMLGenerator(result) |
| 952 | |
| 953 | parser.setContentHandler(xmlgen) |
| 954 | with open(TEST_XMLFILE, 'rb') as f: |
| 955 | with open(f.fileno(), 'rb', closefd=False) as f2: |
| 956 | parser.parse(f2) |
| 957 | |
| 958 | self.assertEqual(result.getvalue(), xml_test_out) |
| 959 | |
| 960 | # ===== DTDHandler support |
| 961 |
nothing calls this directly
no test coverage detected