(self, writer, *args)
| 1986 | return _testcapi.PyUnicodeWriter(size) |
| 1987 | |
| 1988 | def writer_format(self, writer, *args): |
| 1989 | from ctypes import c_char_p, pythonapi, c_int, c_void_p |
| 1990 | _PyUnicodeWriter_Format = getattr(pythonapi, "PyUnicodeWriter_Format") |
| 1991 | _PyUnicodeWriter_Format.argtypes = (c_void_p, c_char_p,) |
| 1992 | _PyUnicodeWriter_Format.restype = c_int |
| 1993 | |
| 1994 | if _PyUnicodeWriter_Format(writer.get_pointer(), *args) < 0: |
| 1995 | raise ValueError("PyUnicodeWriter_Format failed") |
| 1996 | |
| 1997 | def test_format(self): |
| 1998 | from ctypes import c_int |
no outgoing calls
no test coverage detected