Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 206853035e2c14bdba27cd1cdac0cbb21d3c6f69 authored by Larry Hastings on 08 February 2015, 00:04:29 UTC
Fix a copyright notice that still said 2014.
Tip revision: 2068530
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