summaryrefslogtreecommitdiff
path: root/Lib/test/test_ast.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-12 21:25:59 -0400
committerBrett Cannon <brett@python.org>2013-06-12 21:25:59 -0400
commit3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237 (patch)
tree5ef61b4c8c1b5bfaaafb1e1e0cd03afe7971caf7 /Lib/test/test_ast.py
parente382b5868a4daca614589270b6b3fe5c50059986 (diff)
downloadcpython-git-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.gz
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r--Lib/test/test_ast.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index c45326f4b4..49daacb1ea 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -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 = [