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.py793 from _testcapi import getargs_z
794 self.assertEqual(getargs_z('abc\xe9'), b'abc\xc3\xa9')
795 self.assertRaises(ValueError, getargs_z, 'nul:\0')
796 self.assertRaises(TypeError, getargs_z, b'bytes')
797 self.assertRaises(TypeError, getargs_z, bytearray(b'bytearray'))
798 self.assertRaises(TypeError, getargs_z, memoryview(b'memoryview'))
799 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.c1337 getargs_z(PyObject *self, PyObject *args) in getargs_z() function
4663 {"getargs_z", getargs_z, METH_VARARGS},