Raymond Hettinger | f9f4c69 | 2003-08-30 22:54:55 +0000 | [diff] [blame^] | 1 | import unittest |
| 2 | from test import test_support |
Andrew MacIntyre | 5cef571 | 2002-02-24 05:32:32 +0000 | [diff] [blame] | 3 | |
Raymond Hettinger | f9f4c69 | 2003-08-30 22:54:55 +0000 | [diff] [blame^] | 4 | class LongExpText(unittest.TestCase): |
| 5 | def test_longexp(self): |
| 6 | REPS = 65580 |
| 7 | l = eval("[" + "2," * REPS + "]") |
| 8 | self.assertEqual(len(l), REPS) |
Jeremy Hylton | 3c0d013 | 2000-06-20 19:13:27 +0000 | [diff] [blame] | 9 | |
Raymond Hettinger | f9f4c69 | 2003-08-30 22:54:55 +0000 | [diff] [blame^] | 10 | def test_main(): |
| 11 | test_support.run_unittest(LongExpText) |
| 12 | |
| 13 | if __name__=="__main__": |
| 14 | test_main() |