/Lib/test/test_longexp.py

http://unladen-swallow.googlecode.com/ · Python · 14 lines · 11 code · 3 blank · 0 comment · 1 complexity · 32bb7c93ac351b76b15871bb2d4f769a MD5 · raw file

  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()