Raymond Hettinger | f9f4c69 | 2003-08-30 22:54:55 +0000 | [diff] [blame] | 1 | import unittest |
Andrew MacIntyre | 5cef571 | 2002-02-24 05:32:32 +0000 | [diff] [blame] | 2 | |
Raymond Hettinger | f9f4c69 | 2003-08-30 22:54:55 +0000 | [diff] [blame] | 3 | class LongExpText(unittest.TestCase): |
| 4 | def test_longexp(self): |
| 5 | REPS = 65580 |
| 6 | l = eval("[" + "2," * REPS + "]") |
| 7 | self.assertEqual(len(l), REPS) |
Jeremy Hylton | 3c0d013 | 2000-06-20 19:13:27 +0000 | [diff] [blame] | 8 | |
Zachary Ware | 38c707e | 2015-04-13 15:00:43 -0500 | [diff] [blame] | 9 | if __name__ == "__main__": |
| 10 | unittest.main() |