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 test_parser, test_main as test_main_) 5 import unittest 6 from test.test_support import run_unittest 7 8 def suite(): 9 tests = unittest.TestSuite() 10 loader = unittest.TestLoader() 11 for m in (test_fixers, test_pytree,test_util, test_refactor, test_parser, 12 test_main_): 13 tests.addTests(loader.loadTestsFromModule(m)) 14 return tests 15 16 def test_main(): 17 run_unittest(suite()) 18 19 20 if __name__ == '__main__': 21 test_main() 22