PATH:
lib64
/
python2.7
/
lib2to3
/
tests
"""Make tests/ into a package. This allows us to "import tests" and have tests.all_tests be a TestSuite representing all test cases from all test_*.py files in tests/.""" # Author: Collin Winter import os import os.path import unittest import types from . import support all_tests = unittest.TestSuite() tests_dir = os.path.join(os.path.dirname(__file__), '..', 'tests') tests = [t[0:-3] for t in os.listdir(tests_dir) if t.startswith('test_') and t.endswith('.py')] loader = unittest.TestLoader() for t in tests: __import__("",globals(),locals(),[t],level=1) mod = globals()[t] all_tests.addTests(loader.loadTestsFromModule(mod))
[-] test_parser.pyc
[open]
[+]
..
[-] test_util.pyc
[open]
[-] test_parser.pyo
[open]
[-] test_all_fixers.pyc
[open]
[-] test_all_fixers.pyo
[open]
[-] test_all_fixers.py
[open]
[-] test_pytree.pyo
[open]
[-] test_refactor.pyo
[open]
[-] support.py
[open]
[-] test_refactor.py
[open]
[-] test_fixers.py
[open]
[-] __init__.pyc
[open]
[-] test_pytree.py
[open]
[-] pytree_idempotency.pyc
[open]
[-] test_parser.py
[open]
[-] support.pyo
[open]
[-] pytree_idempotency.pyo
[open]
[-] test_util.pyo
[open]
[-] test_util.py
[open]
[-] test_fixers.pyo
[open]
[-] test_fixers.pyc
[open]
[+]
data
[-] __init__.py
[open]
[-] test_main.py
[open]
[-] test_main.pyc
[open]
[-] test_pytree.pyc
[open]
[-] pytree_idempotency.py
[open]
[-] test_main.pyo
[open]
[-] test_refactor.pyc
[open]
[-] __init__.pyo
[open]
[-] support.pyc
[open]