]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in faulthandler, testcapi error messages (#103020)
authorLiyang Zhang <sudo.liyang@gmail.com>
Sat, 25 Mar 2023 21:27:02 +0000 (16:27 -0500)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2023 21:27:02 +0000 (14:27 -0700)
Modules/_testcapi/heaptype.c
Modules/faulthandler.c

index df2a061ed82b068201785a8dd23a4c74c69a2e1e..209cc182c0698d13a6df19f0544065609c21cc00 100644 (file)
@@ -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);
index bfe35fed7a450a3f55f847e0a7bb5e46737ac015..9b4e4199cdc20a0633f3ec162afd5e989bb983bf 100644 (file)
@@ -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;