PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1import unittest
 2from test import test_support
 3
 4class LongExpText(unittest.TestCase):
 5    def test_longexp(self):
 6        REPS = 65580
 7        l = eval("[" + "2," * REPS + "]")
 8        self.assertEqual(len(l), REPS)
 9
10def test_main():
11    test_support.run_unittest(LongExpText)
12
13if __name__=="__main__":
14    test_main()