mirror of https://github.com/python/cpython
40348acc18
Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests. |
||
---|---|---|
.. | ||
fixers | ||
README | ||
bom.py | ||
crlf.py | ||
different_encoding.py | ||
false_encoding.py | ||
infinite_recursion.py | ||
py2_test_grammar.py | ||
py3_test_grammar.py |
README
In this directory: - py2_test_grammar.py -- test file that exercises most/all of Python 2.x's grammar. - py3_test_grammar.py -- test file that exercises most/all of Python 3.x's grammar. - infinite_recursion.py -- test file that causes lib2to3's faster recursive pattern matching scheme to fail, but passes when lib2to3 falls back to iterative pattern matching. - fixes/ -- for use by test_refactor.py