mirror of
https://github.com/python/cpython.git
synced 2024-12-15 21:04:00 +08:00
78f89d8c38
with line feeds. This was ported from the sandbox to the 3.3 branch, but didn't make it into 3.2. - Re-enable lib2to3's test_parser.py tests, though with an expected failure (see issue 13125).
23 lines
636 B
Python
23 lines
636 B
Python
# Skipping test_parser and test_all_fixers
|
|
# because of running
|
|
from lib2to3.tests import (test_fixers, test_pytree, test_util, test_refactor,
|
|
test_parser,
|
|
test_main as test_main_)
|
|
import unittest
|
|
from test.support import run_unittest
|
|
|
|
def suite():
|
|
tests = unittest.TestSuite()
|
|
loader = unittest.TestLoader()
|
|
for m in (test_fixers, test_pytree,test_util, test_refactor,
|
|
test_parser, test_main_):
|
|
tests.addTests(loader.loadTestsFromModule(m))
|
|
return tests
|
|
|
|
def test_main():
|
|
run_unittest(suite())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
test_main()
|