From: Liyang Zhang Date: Sat, 25 Mar 2023 21:27:02 +0000 (-0500) Subject: Fix typos in faulthandler, testcapi error messages (#103020) X-Git-Tag: v3.12.0a7~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11ed70b1dc69c9455d83638af5799dd0071b4ea8;p=thirdparty%2FPython%2Fcpython.git Fix typos in faulthandler, testcapi error messages (#103020) --- diff --git a/Modules/_testcapi/heaptype.c b/Modules/_testcapi/heaptype.c index df2a061ed82b..209cc182c069 100644 --- a/Modules/_testcapi/heaptype.c +++ b/Modules/_testcapi/heaptype.c @@ -174,7 +174,7 @@ test_from_spec_invalid_metatype_inheritance(PyObject *self, PyObject *Py_UNUSED( } if (res == 0) { PyErr_SetString(PyExc_AssertionError, - "TypeError did not inlclude expected message."); + "TypeError did not include expected message."); goto finally; } result = Py_NewRef(Py_None); @@ -265,7 +265,7 @@ test_type_from_ephemeral_spec(PyObject *self, PyObject *Py_UNUSED(ignored)) /* deallocate the spec (and all contents) */ - // (Explicitly ovewrite memory before freeing, + // (Explicitly overwrite memory before freeing, // so bugs show themselves even without the debug allocator's help.) memset(spec, 0xdd, sizeof(PyType_Spec)); PyMem_Del(spec); diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index bfe35fed7a45..9b4e4199cdc2 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -120,7 +120,7 @@ faulthandler_get_fileno(PyObject **file_ptr) return -1; if (fd < 0) { PyErr_SetString(PyExc_ValueError, - "file is not a valid file descripter"); + "file is not a valid file descriptor"); return -1; } *file_ptr = NULL;