From: Victor Stinner <victor.stinner@haypocalc.com>
Date: Mon, 21 Nov 2011 01:06:57 +0000 (+0100)
Subject: test_widechar() uses the new Unicode API
X-Git-Tag: v3.3.0a1~783
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ef18872b40cd66e356a5e744c467557a9607d66;p=python

test_widechar() uses the new Unicode API

PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
---

diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index ab9467e484..3a6dcd6a85 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",