]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix an error message and a comment in _testcapimodule.c (GH-392)
authororenmn <orenmn@users.noreply.github.com>
Thu, 2 Mar 2017 11:29:20 +0000 (13:29 +0200)
committerINADA Naoki <methane@users.noreply.github.com>
Thu, 2 Mar 2017 11:29:20 +0000 (20:29 +0900)
Modules/_testcapimodule.c

index 11015df011a5d39c42480b159d491f026910cc9c..c6af0180dfd66e1d4eb75c71b6eb3590d83cd6c4 100644 (file)
@@ -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);