2003-08-30 19:54:55 -03:00
|
|
|
import unittest
|
2008-05-20 18:35:26 -03:00
|
|
|
from test import 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():
|
2008-05-20 18:35:26 -03:00
|
|
|
support.run_unittest(LongExpText)
|
2003-08-30 19:54:55 -03:00
|
|
|
|
|
|
|
if __name__=="__main__":
|
|
|
|
test_main()
|