test_longexp.py 318 B

1234567891011121314
  1. import unittest
  2. from test import test_support
  3. class LongExpText(unittest.TestCase):
  4. def test_longexp(self):
  5. REPS = 65580
  6. l = eval("[" + "2," * REPS + "]")
  7. self.assertEqual(len(l), REPS)
  8. def test_main():
  9. test_support.run_unittest(LongExpText)
  10. if __name__=="__main__":
  11. test_main()