Skip to content

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

@tangyuan0821 tangyuan0821 commented Jun 21, 2026

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 bedevere-app Bot added tests Tests in the Lib/test dir awaiting review labels Jun 21, 2026
@picnixz

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 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
@StanFromIreland

Copy link
Copy Markdown
Member

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

@picnixz picnixz closed this Jun 21, 2026
@picnixz

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.

@StanFromIreland

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

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

StanFromIreland commented Jun 21, 2026

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 tangyuan0821 deleted the 131178-this branch June 22, 2026 02:27
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