blob: 63cfca0b662ff47b322c6b41dfae053d3bc3950f [file] [log] [blame]
Martin v. Löwis53dbcd32008-03-28 05:26:10 +00001# Skipping test_parser and test_all_fixers
2# because of running
3from lib2to3.tests import test_fixers, test_pytree, test_util
4import unittest
Benjamin Petersona736a282008-07-16 00:44:02 +00005from test.test_support import run_unittest, requires, TestSkipped
Martin v. Löwis5a9ef422008-07-05 15:48:20 +00006
7# Don't run lib2to3 tests by default since they take too long
8if __name__ != '__main__':
Benjamin Petersona736a282008-07-16 00:44:02 +00009 raise TestSkipped('HELP! lib2to3 is broken in Python 2.6!')
Martin v. Löwis5a9ef422008-07-05 15:48:20 +000010 requires('lib2to3')
Martin v. Löwis53dbcd32008-03-28 05:26:10 +000011
12def suite():
13 tests = unittest.TestSuite()
14 loader = unittest.TestLoader()
15 for m in (test_fixers,test_pytree,test_util):
16 tests.addTests(loader.loadTestsFromModule(m))
17 return tests
18
19def test_main():
20 run_unittest(suite())
Brett Cannon8820f2a2008-04-01 12:46:02 +000021
22
23if __name__ == '__main__':
24 test_main()