All this code is not covered:
cpython/Lib/ast.py
Lines 1712 to 1737 in b652d40
Proof: https://github.com/python/cpython/blob/b652d40f1c88fcd8595cd401513f6b7f8e499471/Lib/test/test_ast.py
If I remove def main, tests still pass.
So, my proposal is: add a simple test case that ensures that ast.main is there. I don't think that we need any fancy stuff. ast.main is only a thin wrapper around ast.parse and ast.dump which are fully tested on their own.
pythongh-101821: Cover `ast.main` function
gh-101821: Test coverage for `ast.main` function (#101822)
pythongh-101821: Test coverage for `ast.main` function (python#101822)
Activity
pythongh-101821: Cover `ast.main` function
pythongh-101821: Cover `ast.main` function
gh-101821: Test coverage for `ast.main` function (#101822)
pythongh-101821: Test coverage for `ast.main` function (python#101822)
pythongh-101821: Test coverage for `ast.main` function (python#101822)