Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 463c3f3eefbb706f4da1f17eb25a83968b636094 authored by Larry Hastings on 12 June 2016, 05:24:03 UTC
Release bump for 3.4.5rc1.
Tip revision: 463c3f3
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