The Wayback Machine - https://web.archive.org/web/20230213013039/https://github.com/python/cpython/pull/101822
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-101821: Cover ast.main function #101822

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Feb 11, 2023

Couple of comments on the implementation:

  • script_helper.run_python_until_end has @support.requires_subprocess() guard, so it is should be safe for envs where subprocess is not available
  • os_helper.temp_dir is also widely used for temp files, it even catches OSError and warns about it

So, this new cases should not add any test falkiness or new failures 🙂

@sobolevn
Copy link
Member Author

Oh, \n is platform specific. Fixing!

Lib/test/test_ast.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants