(self)
| 1824 | self.assertEqual(writer.finish(), "Hello Python") |
| 1825 | |
| 1826 | def test_invalid_utf8(self): |
| 1827 | writer = self.create_writer(0) |
| 1828 | with self.assertRaises(UnicodeDecodeError): |
| 1829 | writer.write_utf8(b"invalid=\xFF", -1) |
| 1830 | |
| 1831 | def test_recover_utf8_error(self): |
| 1832 | # test recovering from PyUnicodeWriter_WriteUTF8() error |
nothing calls this directly
no test coverage detected