Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 413a49145e35c7a2d3a7de27c5a1828449c9b2e5 authored by Benjamin Peterson on 02 March 2019, 18:17:42 UTC
Set version to 2.7.16 final.
Tip revision: 413a491
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