blob: dd222a19bff300bb8d9fb9537f707ccda4068e86 [file] [log] [blame]
Raymond Hettingerf9f4c692003-08-30 22:54:55 +00001import unittest
2from test import test_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():
11 test_support.run_unittest(LongExpText)
12
13if __name__=="__main__":
14 test_main()