Back to index

python3.2  3.2.2
Public Member Functions
test.test_xml_etree_c.MiscTests Class Reference

List of all members.

Public Member Functions

def test_length_overflow

Detailed Description

Definition at line 36 of file test_xml_etree_c.py.


Member Function Documentation

Definition at line 39 of file test_xml_etree_c.py.

00039 
00040     def test_length_overflow(self, size):
00041         if size < support._2G + 100:
00042             self.skipTest("not enough free memory, need at least 2 GB")
00043         data = b'x' * size
00044         parser = cET.XMLParser()
00045         try:
00046             self.assertRaises(OverflowError, parser.feed, data)
00047         finally:
00048             data = None
00049 

Here is the call graph for this function:


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