summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-21 01:06:57 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-21 01:06:57 (GMT)
commit8ef18872b40cd66e356a5e744c467557a9607d66 (patch)
tree0292adb05195d2a1c66107a0d0673fc04c1ac720 /Modules
parent333544764619b8e338b7485ea94b9be9b9e75a9d (diff)
downloadcpython-8ef18872b40cd66e356a5e744c467557a9607d66.zip
cpython-8ef18872b40cd66e356a5e744c467557a9607d66.tar.gz
cpython-8ef18872b40cd66e356a5e744c467557a9607d66.tar.bz2
test_widechar() uses the new Unicode API
PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 1 insertions, 1 deletions
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 @@ test_widechar(PyObject *self)
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",