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

Skip to content

Commit 3865830

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 da2f0c7 commit 3865830

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
@@ -307,7 +307,7 @@ check_edit_cost(const char *a, const char *b, Py_ssize_t expected)
307307
goto exit;
308308
}
309309
b_obj = PyUnicode_FromString(b);
310-
if (a_obj == NULL) {
310+
if (b_obj == NULL) {
311311
goto exit;
312312
}
313313
Py_ssize_t result = _Py_UTF8_Edit_Cost(a_obj, b_obj, -1);

0 commit comments

Comments
 (0)
0