René's URL Explorer Experiment


Title: Add tests for command-line interface · Issue #131178 · python/cpython · GitHub

Open Graph Title: Add tests for command-line interface · Issue #131178 · python/cpython

X Title: Add tests for command-line interface · Issue #131178 · python/cpython

Description: While working on #130160 and #93096 it was decided that it would be worth paying attention to the problem of lack of tests for command line interface. List of all cli modules is in the documentation: https://docs.python.org/dev/library/c...

Open Graph Description: While working on #130160 and #93096 it was decided that it would be worth paying attention to the problem of lack of tests for command line interface. List of all cli modules is in the documentatio...

X Description: While working on #130160 and #93096 it was decided that it would be worth paying attention to the problem of lack of tests for command line interface. List of all cli modules is in the documentatio...

Opengraph URL: https://github.com/python/cpython/issues/131178

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add tests for command-line interface","articleBody":"While working on #130160 and #93096 it was decided that it would be worth paying attention to the problem of lack of tests for command line interface.\n\nList of all cli modules is in the documentation: https://docs.python.org/dev/library/cmdline.html\n\nMany modules are missing command line interface tests, so I suggest using this issue to submit PRs for now only for well-documented interfaces, for example:\n\n- [x] `tokenize` (gh-131274)\n- [x] `platform` (gh-131542)\n- [x] `pickle` (gh-131275)\n- [x] `ast` (gh-133329)\n- [x] `pickletools` (gh-131287)\n- [x] `http.server` (gh-132540)\n- [ ] `profile` (gh-134103)\n- [ ] `cProfile` (gh-134269)\n- [x] `site` (gh-133582)\n\nTODO: Make sure [all documented](https://docs.python.org/dev/library/cmdline.html) have tests for CLI (others are not so important as it has not been decided what to do with them yet)\n\nYou can use PR #127759 for `dis` module or #118132 for `random` module as a reference.\nAnd I also suggest using `subprocess.Popen` to allocate a separate resource since some modules can block a lot of time.\n\n\u003e [!IMPORTANT]\n\u003e For those who want to work on the issue, please:\n\u003e * Select one module for which tests will be improved. It's easier to review and backport.\n\u003e * Open a pull request with the following title: `` gh-131178: Add tests for `MODULE_NAME` command-line interface ``\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-131274\n* gh-131275\n* gh-131287\n* gh-131326\n* gh-132540\n* gh-133329\n* gh-133582\n* gh-134103\n* gh-134224\n* gh-134269\n* gh-134279\n* gh-134287\n* gh-137748\n* gh-137807\n* gh-137816\n* gh-137832\n* gh-137833\n* gh-139934\n* gh-139947\n* gh-139983\n* gh-140199\n* gh-140200\n* gh-143835\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/donbarbos","@type":"Person","name":"donbarbos"},"datePublished":"2025-03-13T09:15:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/131178/cpython/issues/131178"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8558f24a-5a7c-2e2a-4d46-72a7c6d4fc6b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBEC:3A35C6:22DB56D:2DC85CE:696B1128
html-safe-nonce7d140238e58ca96782e0c8fd3c5adacebf754c141b86f41c0b710044c372645d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkVDOjNBMzVDNjoyMkRCNTZEOjJEQzg1Q0U6Njk2QjExMjgiLCJ2aXNpdG9yX2lkIjoiNTk1MzQ1ODU0MjQ3ODAzNzI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac354fa740894b39fb9b3185275b2bfc468bf324d17d51518a8f68922033f1047c
hovercard-subject-tagissue:2916421465
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/131178/issue_layout
twitter:imagehttps://opengraph.githubassets.com/43e0e5c04bec52f8e9d1daaf9547fc30defdafa10e5bb771222c8138a2406aa7/python/cpython/issues/131178
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/43e0e5c04bec52f8e9d1daaf9547fc30defdafa10e5bb771222c8138a2406aa7/python/cpython/issues/131178
og:image:altWhile working on #130160 and #93096 it was decided that it would be worth paying attention to the problem of lack of tests for command line interface. List of all cli modules is in the documentatio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedonbarbos
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/131178#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F131178
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F131178
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/131178
Reloadhttps://github.com/python/cpython/issues/131178
Reloadhttps://github.com/python/cpython/issues/131178
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/131178
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/131178
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/131178
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/131178
Add tests for command-line interfacehttps://github.com/python/cpython/issues/131178#top
https://github.com/donbarbos
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/donbarbos
https://github.com/donbarbos
donbarboshttps://github.com/donbarbos
on Mar 13, 2025https://github.com/python/cpython/issues/131178#issue-2916421465
#130160https://github.com/python/cpython/issues/130160
#93096https://github.com/python/cpython/issues/93096
https://docs.python.org/dev/library/cmdline.htmlhttps://docs.python.org/dev/library/cmdline.html
gh-131178: Add tests for tokenize command-line interface #131274https://github.com/python/cpython/pull/131274
gh-131524: Update platform CLI to use argparse #131542https://github.com/python/cpython/pull/131542
gh-131178: Add tests for pickle command-line interface #131275https://github.com/python/cpython/pull/131275
gh-131178: Add tests for ast command-line interface #133329https://github.com/python/cpython/pull/133329
gh-131178: Add tests for pickletools command-line interface #131287https://github.com/python/cpython/pull/131287
gh-131178: Add tests for http.server command-line interface #132540https://github.com/python/cpython/pull/132540
gh-131178: Add CLI tests for profile module #134103https://github.com/python/cpython/pull/134103
gh-131178: Add CLI tests for cProfile #134269https://github.com/python/cpython/pull/134269
gh-131178: Add tests for site command-line interface  #133582https://github.com/python/cpython/pull/133582
all documentedhttps://docs.python.org/dev/library/cmdline.html
#127759https://github.com/python/cpython/pull/127759
#118132https://github.com/python/cpython/pull/118132
gh-131178: Add tests for tokenize command-line interface #131274https://github.com/python/cpython/pull/131274
gh-131178: Add tests for pickle command-line interface #131275https://github.com/python/cpython/pull/131275
gh-131178: Add tests for pickletools command-line interface #131287https://github.com/python/cpython/pull/131287
gh-131178: Update help message for timeit CLI #131326https://github.com/python/cpython/pull/131326
gh-131178: Add tests for http.server command-line interface #132540https://github.com/python/cpython/pull/132540
gh-131178: Add tests for ast command-line interface #133329https://github.com/python/cpython/pull/133329
gh-131178: Add tests for site command-line interface  #133582https://github.com/python/cpython/pull/133582
gh-131178: Add CLI tests for profile module #134103https://github.com/python/cpython/pull/134103
gh-131178: fix SSL tests for http.server command-line interface #134224https://github.com/python/cpython/pull/134224
gh-131178: Add CLI tests for cProfile #134269https://github.com/python/cpython/pull/134269
gh-131178: add E2E mockless tests for http.server command-line interface #134279https://github.com/python/cpython/pull/134279
gh-131178: remove runtime tests for http.server CLI #134287https://github.com/python/cpython/pull/134287
gh-131178: Use support.captured_stdout and support.captured_stderr #137748https://github.com/python/cpython/pull/137748
gh-131178: Add tests for site command-line interface #137807https://github.com/python/cpython/pull/137807
gh-131178: Fix test_unknown_flag for platform CLI #137816https://github.com/python/cpython/pull/137816
[3.14] gh-131178: Add tests for site command-line interface (GH-133582) #137832https://github.com/python/cpython/pull/137832
[3.13] gh-131178: Add tests for site command-line interface (GH-133582) #137833https://github.com/python/cpython/pull/137833
gh-131178: Add tests for sysconfig command-line interface #139934https://github.com/python/cpython/pull/139934
gh-131178: add tests for filecmp command-line interface #139947https://github.com/python/cpython/pull/139947
gh-131178: add unittest for turtledemo #139983https://github.com/python/cpython/pull/139983
gh-131178: add tests for filecmp command-line interface #140199https://github.com/python/cpython/pull/140199
gh-131178: add tests for filecmp command-line interface #140200https://github.com/python/cpython/pull/140200
gh-131178: Add CLI tests for the profile module #143835https://github.com/python/cpython/pull/143835
donbarboshttps://github.com/donbarbos
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.