(self)
| 1995 | raise ValueError("PyUnicodeWriter_Format failed") |
| 1996 | |
| 1997 | def test_format(self): |
| 1998 | from ctypes import c_int |
| 1999 | writer = self.create_writer(0) |
| 2000 | self.writer_format(writer, b'%s %i', b'abc', c_int(123)) |
| 2001 | writer.write_char(ord('.')) |
| 2002 | self.assertEqual(writer.finish(), 'abc 123.') |
| 2003 | |
| 2004 | def test_recover_error(self): |
| 2005 | # test recovering from PyUnicodeWriter_Format() error |
nothing calls this directly
no test coverage detected