blob: 1b40d0298318916c639a13c7092f58cb7de744e1 [file] [log] [blame]
Raymond Hettingerf9f4c692003-08-30 22:54:55 +00001import unittest
Benjamin Petersonee8712c2008-05-20 21:35:26 +00002from test import support
Andrew MacIntyre5cef5712002-02-24 05:32:32 +00003
Raymond Hettingerf9f4c692003-08-30 22:54:55 +00004class LongExpText(unittest.TestCase):
5 def test_longexp(self):
6 REPS = 65580
7 l = eval("[" + "2," * REPS + "]")
8 self.assertEqual(len(l), REPS)
Jeremy Hylton3c0d0132000-06-20 19:13:27 +00009
Raymond Hettingerf9f4c692003-08-30 22:54:55 +000010def test_main():
Benjamin Petersonee8712c2008-05-20 21:35:26 +000011 support.run_unittest(LongExpText)
Raymond Hettingerf9f4c692003-08-30 22:54:55 +000012
13if __name__=="__main__":
14 test_main()