Home
last modified time | relevance | path

Searched refs:getargs_z (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py637 from _testcapi import getargs_z
638 self.assertEqual(getargs_z('abc\xe9'), 'abc\xe9')
639 self.assertEqual(getargs_z(u'abc'), 'abc')
640 self.assertRaises(TypeError, getargs_z, 'nul:\0')
641 self.assertRaises(TypeError, getargs_z, u'nul:\0')
642 self.assertRaises(TypeError, getargs_z, bytearray('bytearray'))
643 self.assertRaises(TypeError, getargs_z, memoryview('memoryview'))
645 self.assertRaises(TypeError, getargs_z, buffer('buffer'))
646 self.assertIsNone(getargs_z(None))
/external/python/cpython3/Lib/test/
Dtest_getargs2.py892 from _testcapi import getargs_z
893 self.assertEqual(getargs_z('abc\xe9'), b'abc\xc3\xa9')
894 self.assertRaises(ValueError, getargs_z, 'nul:\0')
895 self.assertRaises(TypeError, getargs_z, b'bytes')
896 self.assertRaises(TypeError, getargs_z, bytearray(b'bytearray'))
897 self.assertRaises(TypeError, getargs_z, memoryview(b'memoryview'))
898 self.assertIsNone(getargs_z(None))
/external/python/cpython2/Modules/
D_testcapimodule.c1352 getargs_z(PyObject *self, PyObject *args) in getargs_z() function
2733 {"getargs_z", getargs_z, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1372 getargs_z(PyObject *self, PyObject *args) in getargs_z() function
5400 {"getargs_z", getargs_z, METH_VARARGS},