Back to index

python3.2  3.2.2
Namespaces | Variables
lib2to3.tests Namespace Reference

Namespaces

namespace  pytree_idempotency
namespace  support
namespace  test_all_fixers
namespace  test_fixers
namespace  test_main
namespace  test_parser
namespace  test_pytree
namespace  test_refactor
namespace  test_util

Variables

tuple all_tests = unittest.TestSuite()
tuple tests_dir = os.path.join(os.path.dirname(__file__), '..', 'tests')
list tests
tuple loader = unittest.TestLoader()
tuple mod = globals()

Detailed Description

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/.

Variable Documentation

tuple lib2to3.tests.all_tests = unittest.TestSuite()

Definition at line 13 of file __init__.py.

tuple lib2to3.tests.loader = unittest.TestLoader()

Definition at line 19 of file __init__.py.

Definition at line 23 of file __init__.py.

Initial value:
00001 [t[0:-3] for t in os.listdir(tests_dir)
00002                         if t.startswith('test_') and t.endswith('.py')]

Definition at line 16 of file __init__.py.

tuple lib2to3.tests.tests_dir = os.path.join(os.path.dirname(__file__), '..', 'tests')

Definition at line 15 of file __init__.py.