Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bf9cccb2b54ad2c641ea78435a8618a6d251491e authored by Ned Deily on 19 September 2017, 08:31:30 UTC
post 3.3.7, should there be any
Tip revision: bf9cccb
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