Martin v. Löwis | 53dbcd3 | 2008-03-28 05:26:10 +0000 | [diff] [blame] | 1 | # Skipping test_parser and test_all_fixers |
| 2 | # because of running |
| 3 | from lib2to3.tests import test_fixers, test_pytree, test_util |
| 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): |
| 11 | tests.addTests(loader.loadTestsFromModule(m)) |
| 12 | return tests |
| 13 | |
| 14 | def test_main(): |
| 15 | run_unittest(suite()) |
Brett Cannon | 8820f2a | 2008-04-01 12:46:02 +0000 | [diff] [blame^] | 16 | |
| 17 | |
| 18 | if __name__ == '__main__': |
| 19 | test_main() |