test_widechar() uses the new Unicode API

PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
This commit is contained in:
Victor Stinner 2011-11-21 02:06:57 +01:00
parent 3335447646
commit 8ef18872b4
1 changed files with 1 additions and 1 deletions

View File

@ -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",