Update various test modules to use unittest.main() for test discovery

instead of manually listing tests for test.support.run_unittest().
This commit is contained in:
Brett Cannon 2013-06-12 21:25:59 -04:00
parent e382b5868a
commit 3e9a9ae09d
18 changed files with 24 additions and 108 deletions

View file

@ -951,9 +951,6 @@ class ASTValidatorTests(unittest.TestCase):
compile(mod, fn, "exec")
def test_main():
support.run_unittest(AST_Tests, ASTHelpers_Test, ASTValidatorTests)
def main():
if __name__ != '__main__':
return
@ -966,7 +963,7 @@ def main():
print("]")
print("main()")
raise SystemExit
test_main()
unittest.main()
#### EVERYTHING BELOW IS GENERATED #####
exec_results = [