Skip to content

Commit 238cd95

Browse files
committed
Remove uneeded test.
1 parent c5baa34 commit 238cd95

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

Modules/_testcapimodule.c

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4044,47 +4044,3 @@ PyInit__testcapi(void)
40444044
PyState_AddModule(m, &_testcapimodule);
40454045
return m;
40464046
}
4047-
4048-
/* Test the C API exposed when PY_SSIZE_T_CLEAN is not defined */
4049-
4050-
#undef Py_BuildValue
4051-
PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
4052-
4053-
static PyObject *
4054-
test_buildvalue_issue38913(PyObject *self, PyObject *Py_UNUSED(ignored))
4055-
{
4056-
PyObject *res;
4057-
const char str[] = "string";
4058-
const Py_UNICODE unicode[] = L"unicode";
4059-
assert(!PyErr_Occurred());
4060-
4061-
res = Py_BuildValue("(s#O)", str, 1, Py_None);
4062-
assert(res == NULL);
4063-
if (!PyErr_ExceptionMatches(PyExc_SystemError)) {
4064-
return NULL;
4065-
}
4066-
PyErr_Clear();
4067-
4068-
res = Py_BuildValue("(z#O)", str, 1, Py_None);
4069-
assert(res == NULL);
4070-
if (!PyErr_ExceptionMatches(PyExc_SystemError)) {
4071-
return NULL;
4072-
}
4073-
PyErr_Clear();
4074-
4075-
res = Py_BuildValue("(y#O)", str, 1, Py_None);
4076-
assert(res == NULL);
4077-
if (!PyErr_ExceptionMatches(PyExc_SystemError)) {
4078-
return NULL;
4079-
}
4080-
PyErr_Clear();
4081-
4082-
res = Py_BuildValue("(u#O)", unicode, 1, Py_None);
4083-
assert(res == NULL);
4084-
if (!PyErr_ExceptionMatches(PyExc_SystemError)) {
4085-
return NULL;
4086-
}
4087-
PyErr_Clear();
4088-
4089-
Py_RETURN_NONE;
4090-
}

0 commit comments

Comments
 (0)