@@ -3266,8 +3266,6 @@ test_atexit(PyObject *self, PyObject *Py_UNUSED(args))
3266
3266
}
3267
3267
3268
3268
3269
- static PyObject * test_buildvalue_issue38913 (PyObject * , PyObject * );
3270
-
3271
3269
static PyMethodDef TestMethods [] = {
3272
3270
{"set_errno" , set_errno , METH_VARARGS },
3273
3271
{"test_config" , test_config , METH_NOARGS },
@@ -3297,7 +3295,6 @@ static PyMethodDef TestMethods[] = {
3297
3295
{"getbuffer_with_null_view" , getbuffer_with_null_view , METH_O },
3298
3296
{"PyBuffer_SizeFromFormat" , test_PyBuffer_SizeFromFormat , METH_VARARGS },
3299
3297
{"test_buildvalue_N" , test_buildvalue_N , METH_NOARGS },
3300
- {"test_buildvalue_issue38913" , test_buildvalue_issue38913 , METH_NOARGS },
3301
3298
{"test_get_statictype_slots" , test_get_statictype_slots , METH_NOARGS },
3302
3299
{"test_get_type_name" , test_get_type_name , METH_NOARGS },
3303
3300
{"test_get_type_qualname" , test_get_type_qualname , METH_NOARGS },
@@ -4067,47 +4064,3 @@ PyInit__testcapi(void)
4067
4064
PyState_AddModule (m , & _testcapimodule );
4068
4065
return m ;
4069
4066
}
4070
-
4071
- /* Test the C API exposed when PY_SSIZE_T_CLEAN is not defined */
4072
-
4073
- #undef Py_BuildValue
4074
- PyAPI_FUNC (PyObject * ) Py_BuildValue (const char * , ...);
4075
-
4076
- static PyObject *
4077
- test_buildvalue_issue38913 (PyObject * self , PyObject * Py_UNUSED (ignored ))
4078
- {
4079
- PyObject * res ;
4080
- const char str [] = "string" ;
4081
- const Py_UNICODE unicode [] = L"unicode" ;
4082
- assert (!PyErr_Occurred ());
4083
-
4084
- res = Py_BuildValue ("(s#O)" , str , 1 , Py_None );
4085
- assert (res == NULL );
4086
- if (!PyErr_ExceptionMatches (PyExc_SystemError )) {
4087
- return NULL ;
4088
- }
4089
- PyErr_Clear ();
4090
-
4091
- res = Py_BuildValue ("(z#O)" , str , 1 , Py_None );
4092
- assert (res == NULL );
4093
- if (!PyErr_ExceptionMatches (PyExc_SystemError )) {
4094
- return NULL ;
4095
- }
4096
- PyErr_Clear ();
4097
-
4098
- res = Py_BuildValue ("(y#O)" , str , 1 , Py_None );
4099
- assert (res == NULL );
4100
- if (!PyErr_ExceptionMatches (PyExc_SystemError )) {
4101
- return NULL ;
4102
- }
4103
- PyErr_Clear ();
4104
-
4105
- res = Py_BuildValue ("(u#O)" , unicode , 1 , Py_None );
4106
- assert (res == NULL );
4107
- if (!PyErr_ExceptionMatches (PyExc_SystemError )) {
4108
- return NULL ;
4109
- }
4110
- PyErr_Clear ();
4111
-
4112
- Py_RETURN_NONE ;
4113
- }
0 commit comments