test_widechar() uses the new Unicode API
PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
This commit is contained in:
parent
3335447646
commit
8ef18872b4
|
@ -1425,7 +1425,7 @@ test_widechar(PyObject *self)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PyUnicode_GET_SIZE(wide) != PyUnicode_GET_SIZE(utf8)) {
|
if (PyUnicode_GET_LENGTH(wide) != PyUnicode_GET_LENGTH(utf8)) {
|
||||||
Py_DECREF(wide);
|
Py_DECREF(wide);
|
||||||
Py_DECREF(utf8);
|
Py_DECREF(utf8);
|
||||||
return raiseTestError("test_widechar",
|
return raiseTestError("test_widechar",
|
||||||
|
|
Loading…
Reference in New Issue