FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-131178: Add tests for `this` command-line interface by tangyuan0821 · Pull Request #151855 · python/cpython · GitHub

/ cpython Public

gh-131178: Add tests for this command-line interface - #151855

Closed
tangyuan0821 wants to merge 2 commits into
python:mainfrom
tangyuan0821:131178-this
Closed

gh-131178: Add tests for this command-line interface#151855
tangyuan0821 wants to merge 2 commits into
python:mainfrom
tangyuan0821:131178-this

Conversation

tangyuan0821 commented Jun 21, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Summary

  • Add Lib/test/test_this.py with CommandLineTest class, using assert_python_ok to verify python -m this prints "The Zen of Python" and exits with code 0.
  • Add news entry for the new test.

bedevere-app Bot added tests Tests in the Lib/test dir awaiting review labels Jun 21, 2026

picnixz commented Jun 21, 2026

Copy link
Copy Markdown
Member

I don't think this requires a test though. We won't change that file so...

picnixz changed the title gh-131178: Add tests for this command-line interface gh-131178: Add tests for this command-line interface Jun 21, 2026

Copy link
Copy Markdown
Member

I agree with Bénédikt, coverage is good, but here we don't need it.

picnixz closed this Jun 21, 2026

picnixz commented Jun 21, 2026

Copy link
Copy Markdown
Member

Thank you for the proposal but we won't need to test this or antigravity for instance.

Copy link
Copy Markdown
Member

antigravity

I think that one might be worth it considering the Göde award is 1,000,000 euros ;-)

picnixz commented Jun 21, 2026

Copy link
Copy Markdown
Member

(For those who read Stan's message, this is a joke, don't open a PR for the antigravity module please)

StanFromIreland commented Jun 21, 2026
edited
Loading

Copy link
Copy Markdown
Member

Yes, I thought the wink would have cleared that up, but maybe agents don't consider those... :'-(

For reference for others, the GÖDE-Stiftung foundation researches gravity, and offers an award for an experiment demonstrating a real anti-gravity effect.

tangyuan0821 deleted the 131178-this branch June 22, 2026 02:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL