Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 5a2bc5f6164050bc3e106768e9aea31364efd99a authored by cvs2svn on 18 November 2004, 12:32:27 UTC
This commit was manufactured by cvs2svn to create tag 'r24c1'.
Tip revision: 5a2bc5f
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