The silencing of DeprecationWarning was not taking -3 into consideration. Since
[python.git] / Lib / test / test_lib2to3.py
blob109a26cb670965cbae6160e62e65789782530b5d
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
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
16 def test_main():
17 run_unittest(suite())
20 if __name__ == '__main__':
21 test_main()