summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-05-05 18:46:27 (GMT)
committerThomas Heller <theller@ctypes.org>2006-05-05 18:46:27 (GMT)
commit97a7b7fef38bfefd0b737f80ebc4e4e07223f6be (patch)
treee0343654b7e61e7e87a01d083ffb6ea3a09db474
parent748f6fbf2cbd0408ef3cdbe1661acaa5d72bee21 (diff)
downloadcpython-97a7b7fef38bfefd0b737f80ebc4e4e07223f6be.zip
cpython-97a7b7fef38bfefd0b737f80ebc4e4e07223f6be.tar.gz
cpython-97a7b7fef38bfefd0b737f80ebc4e4e07223f6be.tar.bz2
oops - the function is exported as 'my_free', not 'free'.
-rw-r--r--Lib/ctypes/test/test_slicing.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/ctypes/test/test_slicing.py b/Lib/ctypes/test/test_slicing.py
index 008e92f..08c811e 100644
--- a/Lib/ctypes/test/test_slicing.py
+++ b/Lib/ctypes/test/test_slicing.py
@@ -46,12 +46,12 @@ class SlicesTestCase(unittest.TestCase):
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 @@ class SlicesTestCase(unittest.TestCase):
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 @@ class SlicesTestCase(unittest.TestCase):
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)
################################################################