Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 5c26a8afbb6fa43a35e8a1d6942157209890437a authored by Larry Hastings on 18 May 2014, 04:46:35 UTC
Version bump for 3.4.1.
Tip revision: 5c26a8a
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