Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit238cd95

Browse files
committed
Remove uneeded test.
1 parentc5baa34 commit238cd95

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
returnm;
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(constchar*, ...);
4052-
4053-
staticPyObject*
4054-
test_buildvalue_issue38913(PyObject*self,PyObject*Py_UNUSED(ignored))
4055-
{
4056-
PyObject*res;
4057-
constcharstr[]="string";
4058-
constPy_UNICODEunicode[]=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-
returnNULL;
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-
returnNULL;
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-
returnNULL;
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-
returnNULL;
4086-
}
4087-
PyErr_Clear();
4088-
4089-
Py_RETURN_NONE;
4090-
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp