Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f5caf2b30bfe70e5107f816c9e7f7fe3ef5299d9 authored by Larry Hastings on 25 February 2015, 12:15:33 UTC
Checking in this change LOCAL ONLY NO UPLOAD ANYWHERE
Tip revision: f5caf2b
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