@@ -3245,8 +3245,6 @@ test_atexit(PyObject *self, PyObject *Py_UNUSED(args))
3245
3245
}
3246
3246
3247
3247
3248
- static PyObject * test_buildvalue_issue38913 (PyObject * , PyObject * );
3249
-
3250
3248
static PyMethodDef TestMethods [] = {
3251
3249
{"set_errno" , set_errno , METH_VARARGS },
3252
3250
{"test_config" , test_config , METH_NOARGS },
@@ -3276,7 +3274,6 @@ static PyMethodDef TestMethods[] = {
3276
3274
{"getbuffer_with_null_view" , getbuffer_with_null_view , METH_O },
3277
3275
{"PyBuffer_SizeFromFormat" , test_PyBuffer_SizeFromFormat , METH_VARARGS },
3278
3276
{"test_buildvalue_N" , test_buildvalue_N , METH_NOARGS },
3279
- {"test_buildvalue_issue38913" , test_buildvalue_issue38913 , METH_NOARGS },
3280
3277
{"test_get_statictype_slots" , test_get_statictype_slots , METH_NOARGS },
3281
3278
{"test_get_type_name" , test_get_type_name , METH_NOARGS },
3282
3279
{"test_get_type_qualname" , test_get_type_qualname , METH_NOARGS },
@@ -4044,47 +4041,3 @@ PyInit__testcapi(void)
4044
4041
PyState_AddModule (m , & _testcapimodule );
4045
4042
return m ;
4046
4043
}
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