diff options
| author | orenmn <orenmn@users.noreply.github.com> | 2017-03-02 13:29:20 +0200 |
|---|---|---|
| committer | INADA Naoki <methane@users.noreply.github.com> | 2017-03-02 20:29:20 +0900 |
| commit | 698845eba71f98d11671f2e1af6dac2f54a3751d (patch) | |
| tree | d84da1211ff4aa962c83d7f93396839ec93fd003 /Modules/_testcapimodule.c | |
| parent | b2a7c2f9862b28cf5db11ef837646ef0c589955c (diff) | |
| download | cpython-git-698845eba71f98d11671f2e1af6dac2f54a3751d.tar.gz | |
fix an error message and a comment in _testcapimodule.c (GH-392)
Diffstat (limited to 'Modules/_testcapimodule.c')
| -rw-r--r-- | Modules/_testcapimodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 11015df011..c6af0180df 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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); |
