Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 07ffc78c9a0ae051046bf30c61735c465ebfe1c9 authored by Benjamin Peterson on 26 October 2013, 18:57:21 UTC
2.7.6rc1
Tip revision: 07ffc78
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