Martin v. Löwis | 51d1864 | 2008-03-28 05:29:57 +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 |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 5 | from test.support import run_unittest |
Martin v. Löwis | 51d1864 | 2008-03-28 05:29:57 +0000 | [diff] [blame] | 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()) |
Benjamin Peterson | ad9d48d | 2008-04-02 21:49:44 +0000 | [diff] [blame] | 16 | |
| 17 | |
| 18 | if __name__ == '__main__': |
| 19 | test_main() |