Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_buffer.py873 contig = get_contiguous(result, PyBUF_READ, order)
1237 self.assertRaises(TypeError, get_contiguous, 1, 2, 3, 4, 5)
1238 self.assertRaises(TypeError, get_contiguous, nd, "xyz", 'C')
1239 self.assertRaises(OverflowError, get_contiguous, nd, 2**64, 'C')
1240 self.assertRaises(TypeError, get_contiguous, nd, PyBUF_READ, 961)
1241 self.assertRaises(UnicodeEncodeError, get_contiguous, nd, PyBUF_READ,
1243 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'Z')
1244 self.assertRaises(ValueError, get_contiguous, nd, 255, 'A')
2449 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'C')
2450 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'F')
[all …]
/external/python/cpython3/Modules/
D_testbuffer.c2391 get_contiguous(PyObject *self, PyObject *args) in get_contiguous() function
2809 {"get_contiguous", get_contiguous, METH_VARARGS, NULL},