commit | 8ef18872b40cd66e356a5e744c467557a9607d66 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Nov 21 02:06:57 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Nov 21 02:06:57 2011 +0100 |
tree | 0292adb05195d2a1c66107a0d0673fc04c1ac720 | |
parent | 333544764619b8e338b7485ea94b9be9b9e75a9d [diff] |
test_widechar() uses the new Unicode API PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index ab9467e..3a6dcd6 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c
@@ -1425,7 +1425,7 @@ 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(utf8); return raiseTestError("test_widechar",