Home
last modified time | relevance | path

Searched refs:unicode_asutf8 (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_unicode.py2871 from _testcapi import unicode_asutf8
2877 self.assertEqual(unicode_asutf8(bmp), b'\xc4\x80')
2878 self.assertEqual(unicode_asutf8(bmp2), b'\xef\xbf\xbf')
2879 self.assertEqual(unicode_asutf8(nonbmp), b'\xf4\x8f\xbf\xbf')
2880 self.assertRaises(UnicodeEncodeError, unicode_asutf8, 'a\ud800b\udfffc')
/external/python/cpython3/Modules/
D_testcapimodule.c2074 unicode_asutf8(PyObject *self, PyObject *args) in unicode_asutf8() function
5761 {"unicode_asutf8", unicode_asutf8, METH_VARARGS},