Back to index

python3.2  3.2.2
Public Member Functions
test.test_marshal.CodeTestCase Class Reference

List of all members.

Public Member Functions

def test_code
def test_many_codeobjects

Detailed Description

Definition at line 104 of file test_marshal.py.


Member Function Documentation

Definition at line 105 of file test_marshal.py.

00105 
00106     def test_code(self):
00107         co = ExceptionTestCase.test_exceptions.__code__
00108         new = marshal.loads(marshal.dumps(co))
00109         self.assertEqual(co, new)

Here is the call graph for this function:

Definition at line 110 of file test_marshal.py.

00110 
00111     def test_many_codeobjects(self):
00112         # Issue2957: bad recursion count on code objects
00113         count = 5000    # more than MAX_MARSHAL_STACK_DEPTH
00114         codes = (ExceptionTestCase.test_exceptions.__code__,) * count
00115         marshal.loads(marshal.dumps(codes))


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