2003-08-30 19:54:55 -03:00
|
|
|
import unittest
|
|
|
|
from test import test_support
|
2002-02-24 01:32:32 -04:00
|
|
|
|
2003-08-30 19:54:55 -03:00
|
|
|
class LongExpText(unittest.TestCase):
|
|
|
|
def test_longexp(self):
|
|
|
|
REPS = 65580
|
|
|
|
l = eval("[" + "2," * REPS + "]")
|
|
|
|
self.assertEqual(len(l), REPS)
|
2000-06-20 16:13:27 -03:00
|
|
|
|
2003-08-30 19:54:55 -03:00
|
|
|
def test_main():
|
|
|
|
test_support.run_unittest(LongExpText)
|
|
|
|
|
|
|
|
if __name__=="__main__":
|
|
|
|
test_main()
|