Kaydet (Commit) 8ef18872 authored tarafından Victor Stinner's avatar Victor Stinner

test_widechar() uses the new Unicode API

PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
üst 33354476
...@@ -1425,7 +1425,7 @@ test_widechar(PyObject *self) ...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment