Skip to content

Commit cb35202

Browse files
committed
Remove uneeded test.
1 parent c5baa34 commit cb35202

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

Modules/_testcapimodule.c

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,8 +3245,6 @@ test_atexit(PyObject *self, PyObject *Py_UNUSED(args))
32453245
}
32463246

32473247

3248-
static PyObject *test_buildvalue_issue38913(PyObject *, PyObject *);
3249-
32503248
static PyMethodDef TestMethods[] = {
32513249
{"set_errno", set_errno, METH_VARARGS},
32523250
{"test_config", test_config, METH_NOARGS},
@@ -3276,7 +3274,6 @@ static PyMethodDef TestMethods[] = {
32763274
{"getbuffer_with_null_view", getbuffer_with_null_view, METH_O},
32773275
{"PyBuffer_SizeFromFormat", test_PyBuffer_SizeFromFormat, METH_VARARGS},
32783276
{"test_buildvalue_N", test_buildvalue_N, METH_NOARGS},
3279-
{"test_buildvalue_issue38913", test_buildvalue_issue38913, METH_NOARGS},
32803277
{"test_get_statictype_slots", test_get_statictype_slots, METH_NOARGS},
32813278
{"test_get_type_name", test_get_type_name, METH_NOARGS},
32823279
{"test_get_type_qualname", test_get_type_qualname, METH_NOARGS},
@@ -4044,47 +4041,3 @@ PyInit__testcapi(void)
40444041
PyState_AddModule(m, &_testcapimodule);
40454042
return m;
40464043
}
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)