You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 aroundast.parse
andast.dump
which are fully tested on their own.Linked PRs
ast.main
function #101822The text was updated successfully, but these errors were encountered: