Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bd61c3ae1f45c402d8e09fdebeeabbe68132bb52 authored by Larry Hastings on 20 October 2013, 09:01:29 UTC
Version bump for 3.4.0a4.
Tip revision: bd61c3a
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