Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_keeprefs.SimpleTestCase Class Reference

List of all members.

Public Member Functions

def test_cint
def test_ccharp

Detailed Description

Definition at line 4 of file test_keeprefs.py.


Member Function Documentation

Definition at line 13 of file test_keeprefs.py.

00013 
00014     def test_ccharp(self):
00015         x = c_char_p()
00016         self.assertEqual(x._objects, None)
00017         x.value = b"abc"
00018         self.assertEqual(x._objects, b"abc")
00019         x = c_char_p(b"spam")
00020         self.assertEqual(x._objects, b"spam")

Here is the call graph for this function:

Definition at line 5 of file test_keeprefs.py.

00005 
00006     def test_cint(self):
00007         x = c_int()
00008         self.assertEqual(x._objects, None)
00009         x.value = 42
00010         self.assertEqual(x._objects, None)
00011         x = c_int(99)
00012         self.assertEqual(x._objects, None)

Here is the call graph for this function:


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