A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2010-October/098082.html below:

[Python-checkins] r85175 - in python/branches/py3k: Lib/test/test_unicode.py Modules/_testcapimodule.c

[Python-checkins] r85175 - in python/branches/py3k: Lib/test/test_unicode.py Modules/_testcapimodule.cvictor.stinner python-checkins at python.org
Sat Oct 2 13:46:20 CEST 2010
Author: victor.stinner
Date: Sat Oct  2 13:46:20 2010
New Revision: 85175

Log:
Oops, revert unwanted ctypes changes of r85174


Modified:
   python/branches/py3k/Lib/test/test_unicode.py
   python/branches/py3k/Modules/_testcapimodule.c

Modified: python/branches/py3k/Lib/test/test_unicode.py
==============================================================================
--- python/branches/py3k/Lib/test/test_unicode.py	(original)
+++ python/branches/py3k/Lib/test/test_unicode.py	Sat Oct  2 13:46:20 2010
@@ -1396,26 +1396,26 @@
 
     # Test PyUnicode_AsWideChar()
     def test_aswidechar(self):
-        from _testcapi import unicode_aswidechar
+        from _testcapi import test_aswidechar
         from ctypes import c_wchar, sizeof
 
-        wchar, size = unicode_aswidechar('abcdef', 2)
+        wchar, size = test_aswidechar('abcdef', 2)
         self.assertEquals(size, 2)
         self.assertEquals(wchar, 'ab')
 
-        wchar, size = unicode_aswidechar('abc', 3)
+        wchar, size = test_aswidechar('abc', 3)
         self.assertEquals(size, 3)
         self.assertEquals(wchar, 'abc')
 
-        wchar, size = unicode_aswidechar('abc', 4)
+        wchar, size = test_aswidechar('abc', 4)
         self.assertEquals(size, 3)
         self.assertEquals(wchar, 'abc\0')
 
-        wchar, size = unicode_aswidechar('abc', 10)
+        wchar, size = test_aswidechar('abc', 10)
         self.assertEquals(size, 3)
         self.assertEquals(wchar, 'abc\0')
 
-        wchar, size = unicode_aswidechar('abc\0def', 20)
+        wchar, size = test_aswidechar('abc\0def', 20)
         self.assertEquals(size, 7)
         self.assertEquals(wchar, 'abc\0def\0')
 
@@ -1426,20 +1426,20 @@
         else: # sizeof(c_wchar) == 4
             buflen = 2
             nchar = 1
-        wchar, size = unicode_aswidechar(nonbmp, buflen)
+        wchar, size = test_aswidechar(nonbmp, buflen)
         self.assertEquals(size, nchar)
         self.assertEquals(wchar, nonbmp + '\0')
 
     # Test PyUnicode_AsWideCharString()
     def test_aswidecharstring(self):
-        from _testcapi import unicode_aswidecharstring
+        from _testcapi import test_aswidecharstring
         from ctypes import c_wchar, sizeof
 
-        wchar, size = unicode_aswidecharstring('abc')
+        wchar, size = test_aswidecharstring('abc')
         self.assertEquals(size, 3)
         self.assertEquals(wchar, 'abc\0')
 
-        wchar, size = unicode_aswidecharstring('abc\0def')
+        wchar, size = test_aswidecharstring('abc\0def')
         self.assertEquals(size, 7)
         self.assertEquals(wchar, 'abc\0def\0')
 
@@ -1448,7 +1448,7 @@
             nchar = 2
         else: # sizeof(c_wchar) == 4
             nchar = 1
-        wchar, size = unicode_aswidecharstring(nonbmp)
+        wchar, size = test_aswidecharstring(nonbmp)
         self.assertEquals(size, nchar)
         self.assertEquals(wchar, nonbmp + '\0')
 

Modified: python/branches/py3k/Modules/_testcapimodule.c
==============================================================================
--- python/branches/py3k/Modules/_testcapimodule.c	(original)
+++ python/branches/py3k/Modules/_testcapimodule.c	Sat Oct  2 13:46:20 2010
@@ -1386,7 +1386,7 @@
 }
 
 static PyObject *
-unicode_aswidechar(PyObject *self, PyObject *args)
+test_aswidechar(PyObject *self, PyObject *args)
 {
     PyObject *unicode, *result;
     Py_ssize_t buflen, size;
@@ -1417,7 +1417,7 @@
 }
 
 static PyObject *
-unicode_aswidecharstring(PyObject *self, PyObject *args)
+test_aswidecharstring(PyObject *self, PyObject *args)
 {
     PyObject *unicode, *result;
     Py_ssize_t size;
@@ -2321,8 +2321,8 @@
     {"test_u_code",             (PyCFunction)test_u_code,        METH_NOARGS},
     {"test_Z_code",             (PyCFunction)test_Z_code,        METH_NOARGS},
     {"test_widechar",           (PyCFunction)test_widechar,      METH_NOARGS},
-    {"unicode_aswidechar",      unicode_aswidechar,                 METH_VARARGS},
-    {"unicode_aswidecharstring",unicode_aswidecharstring,           METH_VARARGS},
+    {"test_aswidechar",         test_aswidechar,                 METH_VARARGS},
+    {"test_aswidecharstring",   test_aswidecharstring,           METH_VARARGS},
 #ifdef WITH_THREAD
     {"_test_thread_state",      test_thread_state,               METH_VARARGS},
     {"_pending_threadfunc",     pending_threadfunc,              METH_VARARGS},
More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4