Skip to content

Commit 702e0da

Browse files
authored
Fix NULL test in _testinternalcapi (GH-92861)
1 parent bd30461 commit 702e0da

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)