mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fix an error message and a comment in _testcapimodule.c (GH-392)
This commit is contained in:
parent
b2a7c2f986
commit
698845eba7
1 changed files with 3 additions and 2 deletions
|
@ -1167,7 +1167,7 @@ getargs_K(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
/* This function not only tests the 'k' getargs code, but also the
|
||||
PyLong_AsUnsignedLongMask() and PyLong_AsUnsignedLongMask() functions. */
|
||||
PyLong_AsUnsignedLongMask() function. */
|
||||
static PyObject *
|
||||
test_k_code(PyObject *self)
|
||||
{
|
||||
|
@ -1205,7 +1205,8 @@ test_k_code(PyObject *self)
|
|||
value = PyLong_AsUnsignedLongMask(num);
|
||||
if (value != (unsigned long)-0x42)
|
||||
return raiseTestError("test_k_code",
|
||||
"PyLong_AsUnsignedLongMask() returned wrong value for long 0xFFF...FFF");
|
||||
"PyLong_AsUnsignedLongMask() returned wrong "
|
||||
"value for long -0xFFF..000042");
|
||||
|
||||
PyTuple_SET_ITEM(tuple, 0, num);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue