/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
- import unittest
- from test import test_support
- class LongExpText(unittest.TestCase):
- def test_longexp(self):
- REPS = 65580
- l = eval("[" + "2," * REPS + "]")
- self.assertEqual(len(l), REPS)
- def test_main():
- test_support.run_unittest(LongExpText)
- if __name__=="__main__":
- test_main()