Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 5a29c5cc452e3fa52f48581094c7125d94d65cf6 authored by Benjamin Peterson on 23 May 2015, 16:02:14 UTC
python 2.7.10 final
Tip revision: 5a29c5c
test_longexp.py
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()
back to top