[Python-checkins] r45915 - python/trunk/Lib/ctypes/test/test_slicing.py
thomas.heller
python-checkins at python.org
Fri May 5 20:46:28 CEST 2006
Author: thomas.heller
Date: Fri May 5 20:46:27 2006
New Revision: 45915
Modified:
python/trunk/Lib/ctypes/test/test_slicing.py
Log:
oops - the function is exported as 'my_free', not 'free'.
Modified: python/trunk/Lib/ctypes/test/test_slicing.py
==============================================================================
--- python/trunk/Lib/ctypes/test/test_slicing.py (original)
+++ python/trunk/Lib/ctypes/test/test_slicing.py Fri May 5 20:46:27 2006
@@ -46,12 +46,12 @@
import operator
self.assertRaises(TypeError, operator.setslice,
res, 0, 5, u"abcde")
- dll.free(res)
+ dll.my_free(res)
dll.my_strdup.restype = POINTER(c_byte)
res = dll.my_strdup(s)
self.failUnlessEqual(res[:len(s)-1], range(ord("a"), ord("z")+1))
- dll.free(res)
+ dll.my_free(res)
def test_char_array(self):
s = "abcdefghijklmnopqrstuvwxyz\0"
@@ -78,7 +78,7 @@
import operator
self.assertRaises(TypeError, operator.setslice,
res, 0, 5, u"abcde")
- dll.free(res)
+ dll.my_free(res)
if sizeof(c_wchar) == sizeof(c_short):
dll.my_wcsdup.restype = POINTER(c_short)
@@ -90,7 +90,7 @@
return
res = dll.my_wcsdup(s)
self.failUnlessEqual(res[:len(s)-1], range(ord("a"), ord("z")+1))
- dll.free(res)
+ dll.my_free(res)
################################################################
More information about the Python-checkins
mailing list