Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 8bc7e31529bd10dca2a139ecc0c8838e6021a5a2 authored by Georg Brandl on 06 April 2013, 07:36:20 UTC
Bump to 3.2.4.
Tip revision: 8bc7e31
test_longexp.py
import unittest
from test import support

class LongExpText(unittest.TestCase):
    def test_longexp(self):
        REPS = 65580
        l = eval("[" + "2," * REPS + "]")
        self.assertEqual(len(l), REPS)

def test_main():
    support.run_unittest(LongExpText)

if __name__=="__main__":
    test_main()
back to top