home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 July / maximum-cd-2011-07.iso / DiscContents / LibO_3.3.2_Win_x86_install_multi.exe / libreoffice1.cab / test_lib2to3.py < prev    next >
Encoding:
Python Source  |  2011-03-15  |  507 b   |  20 lines

  1. # Skipping test_parser and test_all_fixers
  2. # because of running
  3. from lib2to3.tests import test_fixers, test_pytree, test_util, test_refactor
  4. import unittest
  5. from test.test_support import run_unittest
  6.  
  7. def suite():
  8.     tests = unittest.TestSuite()
  9.     loader = unittest.TestLoader()
  10.     for m in (test_fixers,test_pytree,test_util, test_refactor):
  11.         tests.addTests(loader.loadTestsFromModule(m))
  12.     return tests
  13.  
  14. def test_main():
  15.     run_unittest(suite())
  16.  
  17.  
  18. if __name__ == '__main__':
  19.     test_main()
  20.