mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-106320: _testcapi avoids private _PyUnicode_EqualToASCIIString() (#106341)
Replace private _PyUnicode_EqualToASCIIString() with public PyUnicode_CompareWithASCIIString().
This commit is contained in:
parent
c38c66687f
commit
4e3aa7cd31
1 changed files with 1 additions and 1 deletions
|
@ -1100,7 +1100,7 @@ test_string_from_format(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
} \
|
||||
else if (result == NULL) \
|
||||
return NULL; \
|
||||
else if (!_PyUnicode_EqualToASCIIString(result, EXPECTED)) { \
|
||||
else if (PyUnicode_CompareWithASCIIString(result, EXPECTED) != 0) { \
|
||||
PyErr_Format(PyExc_AssertionError, \
|
||||
"test_string_from_format: failed at \"%s\" " \
|
||||
"expected \"%s\" got \"%s\"", \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue