home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 June / maximum-cd-2011-06.iso / DiscContents / LibO_3.3.1_Win_x86_install_multi.exe / libreoffice1.cab / test_longexp.py < prev    next >
Encoding:
Python Source  |  2011-02-15  |  318 b   |  15 lines

  1. import unittest
  2. from test import test_support
  3.  
  4. class LongExpText(unittest.TestCase):
  5.     def test_longexp(self):
  6.         REPS = 65580
  7.         l = eval("[" + "2," * REPS + "]")
  8.         self.assertEqual(len(l), REPS)
  9.  
  10. def test_main():
  11.     test_support.run_unittest(LongExpText)
  12.  
  13. if __name__=="__main__":
  14.     test_main()
  15.