Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11ed70b

Browse files
authored
Fix typos in faulthandler, testcapi error messages (#103020)
1 parent 8ec6486 commit 11ed70b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Modules/_testcapi/heaptype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ test_from_spec_invalid_metatype_inheritance(PyObject *self, PyObject *Py_UNUSED(
174174
}
175175
if (res == 0) {
176176
PyErr_SetString(PyExc_AssertionError,
177-
"TypeError did not inlclude expected message.");
177+
"TypeError did not include expected message.");
178178
goto finally;
179179
}
180180
result = Py_NewRef(Py_None);
@@ -265,7 +265,7 @@ test_type_from_ephemeral_spec(PyObject *self, PyObject *Py_UNUSED(ignored))
265265

266266
/* deallocate the spec (and all contents) */
267267

268-
// (Explicitly ovewrite memory before freeing,
268+
// (Explicitly overwrite memory before freeing,
269269
// so bugs show themselves even without the debug allocator's help.)
270270
memset(spec, 0xdd, sizeof(PyType_Spec));
271271
PyMem_Del(spec);

Modules/faulthandler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ faulthandler_get_fileno(PyObject **file_ptr)
120120
return -1;
121121
if (fd < 0) {
122122
PyErr_SetString(PyExc_ValueError,
123-
"file is not a valid file descripter");
123+
"file is not a valid file descriptor");
124124
return -1;
125125
}
126126
*file_ptr = NULL;

0 commit comments

Comments
 (0)