<s> from test import test_support <EOL> from test . test_support import precisionbigmemtest , _2G <EOL> import unittest <EOL> cET = test_support . import_module ( '<STR_LIT>' ) <EOL> def sanity ( ) : <EOL> """<STR_LIT>""" <EOL> class MiscTests ( unittest . TestCase ) : <EOL> @ precisionbigmemtest ( size = _2G + <NUM_LIT:100> , memuse = <NUM_LIT:1> ) <EOL> def test_length_overflow ( self , size ) : <EOL> if size < _2G + <NUM_LIT:100> : <EOL> self . skipTest ( "<STR_LIT>" ) <EOL> data = b'<STR_LIT:x>' * size <EOL> parser = cET . XMLParser ( ) <EOL> try : <EOL> self . assertRaises ( OverflowError , parser . feed , data ) <EOL> finally : <EOL> data = None <EOL> def test_main ( ) : <EOL> from test import test_xml_etree , test_xml_etree_c <EOL> test_support . run_doctest ( test_xml_etree_c , verbosity = True ) <EOL> pyET = test_xml_etree . ET <EOL> py__name__ = test_xml_etree . __name__ <EOL> test_xml_etree . ET = cET <EOL> if __name__ != '<STR_LIT:__main__>' : <EOL> test_xml_etree . __name__ = __name__ <EOL> try : <EOL> test_xml_etree . test_main ( module_name = '<STR_LIT>' ) <EOL> finally : <EOL> test_xml_etree . ET = pyET <EOL> test_xml_etree . __name__ = py__name__ <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> test_main ( ) </s>
