8000 Fix NULL test in _testinternalcapi (GH-92861) · python/cpython@add8820 · GitHub
[go: up one dir, main page]

Skip to content

Commit add8820

Browse files
Fix NULL test in _testinternalcapi (GH-92861)
(cherry picked from commit 702e0da) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
1 parent 006b302 commit add8820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testinternalcapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ check_edit_cost(const char *a, const char *b, Py_ssize_t expected)
292292
goto exit;
293293
}
294294
b_obj = PyUnicode_FromString(b);
295-
if (a_obj == NULL) { 545D
295+
if (b_obj == NULL) {
296296
goto exit;
297297
}
298298
Py_ssize_t result = _Py_UTF8_Edit_Cost(a_obj, b_obj, -1);

0 commit comments

Comments
 (0)
0