Skip to content

Commit 7f5afec

Browse files
authored
gh-105156: Update Lib/test/clinic.test manually (#105180)
Update Lib/test/clinic.test manually for updated Py_UNICODE converter: it now uses wchar_t type rather than Py_UNICODE.
1 parent 201440e commit 7f5afec

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Lib/test/clinic.test

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,21 +1783,21 @@ PyDoc_STRVAR(test_Py_UNICODE_converter__doc__,
17831783
{"test_Py_UNICODE_converter", _PyCFunction_CAST(test_Py_UNICODE_converter), METH_FASTCALL, test_Py_UNICODE_converter__doc__},
17841784

17851785
static PyObject *
1786-
test_Py_UNICODE_converter_impl(PyObject *module, const Py_UNICODE *a,
1787-
const Py_UNICODE *b, const Py_UNICODE *c,
1788-
const Py_UNICODE *d, Py_ssize_t d_length,
1789-
const Py_UNICODE *e, Py_ssize_t e_length);
1786+
test_Py_UNICODE_converter_impl(PyObject *module, const wchar_t *a,
1787+
const wchar_t *b, const wchar_t *c,
1788+
const wchar_t *d, Py_ssize_t d_length,
1789+
const wchar_t *e, Py_ssize_t e_length);
17901790

17911791
static PyObject *
17921792
test_Py_UNICODE_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
17931793
{
17941794
PyObject *return_value = NULL;
1795-
const Py_UNICODE *a = NULL;
1796-
const Py_UNICODE *b = NULL;
1797-
const Py_UNICODE *c = NULL;
1798-
const Py_UNICODE *d = NULL;
1795+
const wchar_t *a = NULL;
1796+
const wchar_t *b = NULL;
1797+
const wchar_t *c = NULL;
1798+
const wchar_t *d = NULL;
17991799
Py_ssize_t d_length;
1800-
const Py_UNICODE *e = NULL;
1800+
const wchar_t *e = NULL;
18011801
Py_ssize_t e_length;
18021802

18031803
if (!_PyArg_ParseStack(args, nargs, "O&O&O&u#Z#:test_Py_UNICODE_converter",
@@ -1818,11 +1818,11 @@ exit:
18181818
}
18191819

18201820
static PyObject *
1821-
test_Py_UNICODE_converter_impl(PyObject *module, const Py_UNICODE *a,
1822-
const Py_UNICODE *b, const Py_UNICODE *c,
1823-
const Py_UNICODE *d, Py_ssize_t d_length,
1824-
const Py_UNICODE *e, Py_ssize_t e_length)
1825-
/*[clinic end generated code: output=9f34a249b3071fdd input=064a3b68ad7f04b0]*/
1821+
test_Py_UNICODE_converter_impl(PyObject *module, const wchar_t *a,
1822+
const wchar_t *b, const wchar_t *c,
1823+
const wchar_t *d, Py_ssize_t d_length,
1824+
const wchar_t *e, Py_ssize_t e_length)
1825+
/*[clinic end generated code: output=529af9cda2a20349 input=064a3b68ad7f04b0]*/
18261826

18271827

18281828
/*[clinic input]

0 commit comments

Comments
 (0)