Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_checkretval.Test Class Reference

List of all members.

Public Member Functions

def test_checkretval
def test_oledll

Detailed Description

Definition at line 11 of file test_checkretval.py.


Member Function Documentation

Definition at line 13 of file test_checkretval.py.

00013 
00014     def test_checkretval(self):
00015 
00016         import _ctypes_test
00017         dll = CDLL(_ctypes_test.__file__)
00018         self.assertEqual(42, dll._testfunc_p_p(42))
00019 
00020         dll._testfunc_p_p.restype = CHECKED
00021         self.assertEqual("42", dll._testfunc_p_p(42))
00022 
00023         dll._testfunc_p_p.restype = None
00024         self.assertEqual(None, dll._testfunc_p_p(42))
00025 
00026         del dll._testfunc_p_p.restype
00027         self.assertEqual(42, dll._testfunc_p_p(42))

Here is the call graph for this function:

Definition at line 33 of file test_checkretval.py.

00033 
00034         def test_oledll(self):
00035             self.assertRaises(WindowsError,
00036                                   oledll.oleaut32.CreateTypeLib2,
00037                                   0, None, None)

Here is the call graph for this function:


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