Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_pointers.PointersTestCase Class Reference

List of all members.

Public Member Functions

def test_pointer_crash
def test_pass_pointers

Detailed Description

Definition at line 11 of file test_pointers.py.


Member Function Documentation

Definition at line 22 of file test_pointers.py.

00022 
00023     def test_pass_pointers(self):
00024         dll = CDLL(_ctypes_test.__file__)
00025         func = dll._testfunc_p_p
00026         func.restype = c_long
00027 
        i = c_int(12345678)

Definition at line 13 of file test_pointers.py.

00013 
00014     def test_pointer_crash(self):
00015 
00016         class A(POINTER(c_ulong)):
00017             pass
00018 
00019         POINTER(c_ulong)(c_ulong(22))
00020         # Pointer can't set contents: has no _type_
00021         self.assertRaises(TypeError, A, c_ulong(33))


The documentation for this class was generated from the following file: