Skip to content

Commit 698845e

Browse files
orenmnmethane
authored andcommitted
fix an error message and a comment in _testcapimodule.c (GH-392)
1 parent b2a7c2f commit 698845e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/_testcapimodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ getargs_K(PyObject *self, PyObject *args)
11671167
}
11681168

11691169
/* This function not only tests the 'k' getargs code, but also the
1170-
PyLong_AsUnsignedLongMask() and PyLong_AsUnsignedLongMask() functions. */
1170+
PyLong_AsUnsignedLongMask() function. */
11711171
static PyObject *
11721172
test_k_code(PyObject *self)
11731173
{
@@ -1205,7 +1205,8 @@ test_k_code(PyObject *self)
12051205
value = PyLong_AsUnsignedLongMask(num);
12061206
if (value != (unsigned long)-0x42)
12071207
return raiseTestError("test_k_code",
1208-
"PyLong_AsUnsignedLongMask() returned wrong value for long 0xFFF...FFF");
1208+
"PyLong_AsUnsignedLongMask() returned wrong "
1209+
"value for long -0xFFF..000042");
12091210

12101211
PyTuple_SET_ITEM(tuple, 0, num);
12111212

0 commit comments

Comments
 (0)