PageRenderTime 283ms CodeModel.GetById 141ms app.highlight 3ms RepoModel.GetById 138ms app.codeStats 0ms

/Lib/test/test_lib2to3.py

http://unladen-swallow.googlecode.com/
Python | 24 lines | 18 code | 4 blank | 2 comment | 4 complexity | 0e5924f977d539cfdec4beeebb592a7a MD5 | raw file
 1# Skipping test_parser and test_all_fixers
 2# because of running
 3from lib2to3.tests import test_fixers, test_pytree, test_util, test_refactor
 4import sys
 5from test.test_support import run_unittest
 6import unittest
 7
 8def suite():
 9    tests = unittest.TestSuite()
10    loader = unittest.TestLoader()
11    for m in (test_fixers,test_pytree,test_util, test_refactor):
12        tests.addTests(loader.loadTestsFromModule(m))
13    return tests
14
15def test_main():
16    run_unittest(suite())
17
18
19if __name__ == '__main__':
20    if sys.flags.optimize >= 2:
21        print >>sys.stderr, "test_lib2to3 --",
22        print >>sys.stderr, "skipping some tests due to -O flag."
23        sys.stderr.flush()
24    test_main()