René's URL Explorer Experiment


Title: Bug: test_invalid_command fails on Python 3.12 · Issue #1864 · commitizen-tools/commitizen · GitHub

Open Graph Title: Bug: test_invalid_command fails on Python 3.12 · Issue #1864 · commitizen-tools/commitizen

X Title: Bug: test_invalid_command fails on Python 3.12 · Issue #1864 · commitizen-tools/commitizen

Description: Description The test_invalid_command fails specifically on Python 3.12. Interestingly, the test passes as expected on Python 3.10, 3.11, 3.13, and 3.14. On Python 3.12, argparse produces an error message with single quotes around choices...

Open Graph Description: Description The test_invalid_command fails specifically on Python 3.12. Interestingly, the test passes as expected on Python 3.10, 3.11, 3.13, and 3.14. On Python 3.12, argparse produces an error m...

X Description: Description The test_invalid_command fails specifically on Python 3.12. Interestingly, the test passes as expected on Python 3.10, 3.11, 3.13, and 3.14. On Python 3.12, argparse produces an error m...

Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1864

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: test_invalid_command fails on Python 3.12","articleBody":"### Description\n\nThe test_invalid_command fails specifically on Python 3.12. Interestingly, the test passes as expected on Python 3.10, 3.11, 3.13, and 3.14.\n\nOn Python 3.12, argparse produces an error message with single quotes around choices, but our current regression reference for 3.12 expects the \"no-quote\" format (which is the standard in 3.13+). This inconsistency causes a mismatch only in the 3.12 environment.\n### Steps to reproduce\n\n1. Use a Python 3.12.3 environment.\n2. Run the test suite:\n  `uv run pytest tests/test_cli.py::test_invalid_command`\n3. Observe the `AssertionError` from `file_regression.check`.\n\n### Current behavior\n\nThe test fails because the obtained output contains single quotes around the valid choices, whereas the reference file  does not.\nDiff output:\n\n\u003cimg width=\"3347\" height=\"64\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/26b76c86-ad24-4d9b-b963-afe3bdfd7a79\" /\u003e\n\n### Desired behavior\n\nThe regression files for Python 3.12 should be standardized. We need to decide whether Python 3.12 should strictly follow the \"no quotes\" format or if the reference files need an update to accommodate the specific minor version of Python 3.12 being used.\n\n### Screenshots\n\n\u003cimg width=\"3456\" height=\"1068\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/eabbbc6d-de90-47b1-9016-4cab1aba7edd\" /\u003e\n\n\u003cimg width=\"2494\" height=\"1684\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/68cb27f5-263a-477a-8c95-d2938c093ddd\" /\u003e\n\n### Environment\n\nCommitizen Version: 4.13.6\nPython Version: \n- Python 3.10.19, PASS\n- Python 3.11.14, PASS\n- Python 3.12.3, FAIL\n- Python 3.13.12, PASS\n- Python 3.14.3, PASS\n\nOperating System: Linux","author":{"url":"https://github.com/lostinth1cho","@type":"Person","name":"lostinth1cho"},"datePublished":"2026-02-10T08:07:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1864/commitizen/issues/1864"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3cd0bcb4-610d-e4ac-0880-91a20be99aca
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA736:13657F:C46BB1:11F1E56:6A4E25BF
html-safe-nonce009a195794055984639439356a32906f81d8e68b0124100a6f8f4973ed1e9060
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzM2OjEzNjU3RjpDNDZCQjE6MTFGMUU1Njo2QTRFMjVCRiIsInZpc2l0b3JfaWQiOiI3MTA3OTkzNjgzNDkyNzQyNTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfedc379a01fe2583915198d806f58773eb404446d79166a970bea56a53d29144
hovercard-subject-tagissue:3920033913
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/commitizen-tools/commitizen/1864/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f542af4289d9a74130ac0bf1118a89f0c6435659d863778f69a6760b8ceb37c0/commitizen-tools/commitizen/issues/1864
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f542af4289d9a74130ac0bf1118a89f0c6435659d863778f69a6760b8ceb37c0/commitizen-tools/commitizen/issues/1864
og:image:altDescription The test_invalid_command fails specifically on Python 3.12. Interestingly, the test passes as expected on Python 3.10, 3.11, 3.13, and 3.14. On Python 3.12, argparse produces an error m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelostinth1cho
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
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
released9dd20d38f8ae3c4cb6b597807431db300d0bd2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1864#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1864
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1864
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=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1864
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1864
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1864
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1864
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1864
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 344 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
#1982https://github.com/commitizen-tools/commitizen/pull/1982
Bug: test_invalid_command fails on Python 3.12https://github.com/commitizen-tools/commitizen/issues/1864#top
#1982https://github.com/commitizen-tools/commitizen/pull/1982
https://github.com/noirbizarre
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
os: Linuxissues related to linuxhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22os%3A%20Linux%22
type: bughttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/lostinth1cho
lostinth1chohttps://github.com/lostinth1cho
on Feb 10, 2026https://github.com/commitizen-tools/commitizen/issues/1864#issue-3920033913
https://private-user-images.githubusercontent.com/59854090/547565724-26b76c86-ad24-4d9b-b963-afe3bdfd7a79.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM1MDY2NjcsIm5iZiI6MTc4MzUwNjM2NywicGF0aCI6Ii81OTg1NDA5MC81NDc1NjU3MjQtMjZiNzZjODYtYWQyNC00ZDliLWI5NjMtYWZlM2JkZmQ3YTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1IT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NWYxNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.HbeRPI7kZZQnpWpAdT7ywMhZ7JvKPxhWujm_V39eMZo
https://private-user-images.githubusercontent.com/59854090/547574970-68cb27f5-263a-477a-8c95-d2938c093ddd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM1MDY2NjcsIm5iZiI6MTc4MzUwNjM2NywicGF0aCI6Ii81OTg1NDA5MC81NDc1NzQ5NzAtNjhjYjI3ZjUtMjYzYS00NzdhLThjOTUtZDI5MzhjMDkzZGRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA4VDEwMjYwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhMTdjYzhjYzgxMDRhYTJiNzI5ODU2ZDJkYjRiYmMxYTE3YzY5ODE4ZWM5YzQzYzRkOGQyNGIyNDAxMzU3MDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.gaUiuizu0yOrYvVXikNPOPWMWd8i7jUe1GNkuVqBoXM
noirbizarrehttps://github.com/noirbizarre
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
os: Linuxissues related to linuxhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22os%3A%20Linux%22
type: bughttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%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.