René's URL Explorer Experiment


Title: Split up _testcapimodule.c · Issue #93649 · python/cpython · GitHub

Open Graph Title: Split up _testcapimodule.c · Issue #93649 · python/cpython

X Title: Split up _testcapimodule.c · Issue #93649 · python/cpython

Description: Modules/_testcapimodule.c is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain. It also doesn't work well with testing (a) feature macros that affect Python.h and (b) module initializatio...

Open Graph Description: Modules/_testcapimodule.c is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain. It also doesn't work well with testing (a) feature macros that affe...

X Description: Modules/_testcapimodule.c is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain. It also doesn't work well with testing (a) feature macros that ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Split up _testcapimodule.c","articleBody":"`Modules/_testcapimodule.c` is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain.\r\n\r\nIt also doesn't work well with testing (a) feature macros that affect `Python.h` and (b) module initialization, so we have additional C-API testing modules: `_testmultiphase`, `_testimportmultiple`, `_testinternalcapi`.\r\n`_testbuffer` is already split out, but there are many other aspects of the API that would use a similar dedicated test suite.\r\n\r\nWe should split and combine these, ideally without polluting the namespace of top-level modules.\r\n\r\n\u003c!-- gh-pr-number: gh-94549 --\u003e\r\n* PR: gh-94549\r\n\u003c!-- /gh-pr-number --\u003e\r\n\r\n\u003c!-- gh-pr-number: gh-94695 --\u003e\r\n* PR: gh-94695\r\n\u003c!-- /gh-pr-number --\u003e\r\n\r\n\u003c!-- gh-pr-number: gh-94702 --\u003e\r\n* PR: gh-94702\r\n\u003c!-- /gh-pr-number --\u003e\r\n\r\n\u003c!-- gh-pr-number: gh-95386 --\u003e\r\n* PR: gh-95386\r\n\u003c!-- /gh-pr-number --\u003e\r\n\r\n\u003c!-- gh-pr-number: gh-95793 --\u003e\r\n* PR: gh-95793\r\n\u003c!-- /gh-pr-number --\u003e\r\n\r\n\u003c!-- gh-pr-number: gh-95819 --\u003e\r\n* PR: gh-95819\r\n\u003c!-- /gh-pr-number --\u003e\r\n\r\n\u003c!-- gh-pr-number: gh-99346 --\u003e\r\n* PR: gh-99346\r\n\u003c!-- /gh-pr-number --\u003e\r\n\n\n\u003c!-- gh-pr-number: gh-99494 --\u003e\n* PR: gh-99494\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-99517 --\u003e\n* PR: gh-99517\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-99532 --\u003e\n* PR: gh-99532\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-99549 --\u003e\n* PR: gh-99549\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-99551 --\u003e\n* PR: gh-99551\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-102173 --\u003e\n* PR: gh-102173\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104403 --\u003e\n* PR: gh-104403\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-129400 --\u003e\n* PR: gh-129400\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-129512 --\u003e\n* PR: gh-129512\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-129516 --\u003e\n* PR: gh-129516\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-129521 --\u003e\n* PR: gh-129521\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-129544 --\u003e\n* PR: gh-129544\n\u003c!-- /gh-pr-number --\u003e\n","author":{"url":"https://github.com/encukou","@type":"Person","name":"encukou"},"datePublished":"2022-06-09T15:53:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":38},"url":"https://github.com/93649/cpython/issues/93649"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:13346d38-d65d-c7dc-3735-f507e92f2c58
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC762:4D9DF:19374D7:238D381:69690206
html-safe-nonce1887cf65e54036a5fd1aa1e98f59b9d3d9e0ec65c737af3599d6f4adf399aa94
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzYyOjREOURGOjE5Mzc0RDc6MjM4RDM4MTo2OTY5MDIwNiIsInZpc2l0b3JfaWQiOiI4ODcyNjU0MzU5Mzc1NzA4Njc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac753ccbaff072613b81458ad9271e32878a83cbf55e0fe7938d72cc81ebf95206
hovercard-subject-tagissue:1266349205
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/93649/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d77e462e723dbcdf75613fe441644cbc84e7d81fcabf5356b95e64e2908d2b5b/python/cpython/issues/93649
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d77e462e723dbcdf75613fe441644cbc84e7d81fcabf5356b95e64e2908d2b5b/python/cpython/issues/93649
og:image:altModules/_testcapimodule.c is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain. It also doesn't work well with testing (a) feature macros that affe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
Nonee6156bd4ef9f2dc8dadf4c49a8f7ed8532186388cef72eda3ccb9f0ab3b8cfca
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
releasefd1938215b152e2c6a29cf56fec07fd9f91f1203
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/93649#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F93649
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%2F93649
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/93649
Reloadhttps://github.com/python/cpython/issues/93649
Reloadhttps://github.com/python/cpython/issues/93649
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/93649
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 2k 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/93649
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/93649
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/93649
Split up _testcapimodule.chttps://github.com/python/cpython/issues/93649#top
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
https://github.com/encukou
https://github.com/encukou
encukouhttps://github.com/encukou
on Jun 9, 2022https://github.com/python/cpython/issues/93649#issue-1266349205
gh-93649: Split vectorcall testing from _testcapimodule.c #94549https://github.com/python/cpython/pull/94549
gh-93649: Fix dependencies of _testcapi #94695https://github.com/python/cpython/pull/94695
gh-93649: Fix linkage of _PyTestCapi_Init_Vectorcall #94702https://github.com/python/cpython/pull/94702
gh-93649: Split heaptype tests from _testcapimodule.c  #95386https://github.com/python/cpython/pull/95386
gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() #95793https://github.com/python/cpython/pull/95793
gh-93649: Split unicode tests from _testcapimodule.c & add some more #95819https://github.com/python/cpython/pull/95819
gh-93649: Split getargs testing from _testcapimodule.c #99346https://github.com/python/cpython/pull/99346
gh-93649: Split pytime and datetime tests from _testcapimodule.c #99494https://github.com/python/cpython/pull/99494
gh-93649: Split memory and docstring tests from _testcapimodule.c #99517https://github.com/python/cpython/pull/99517
gh-93649: Split watcher API tests from _testcapimodule.c #99532https://github.com/python/cpython/pull/99532
gh-93649: Split float/long tests from _testcapimodule.c #99549https://github.com/python/cpython/pull/99549
gh-93649: Split tracemalloc tests from _testcapimodule.c #99551https://github.com/python/cpython/pull/99551
gh-93649: Split exception tests from _testcapimodule.c #102173https://github.com/python/cpython/pull/102173
gh-93649: Split gc- and allocation tests from _testcapimodule.c #104403https://github.com/python/cpython/pull/104403
gh-93649: Split _testcapimodule.c into smaller files #129400https://github.com/python/cpython/pull/129400
gh-93649: Move PyFrame C API tests to test_capi #129512https://github.com/python/cpython/pull/129512
gh-93649: Add Modules/_testcapi/type.c file #129516https://github.com/python/cpython/pull/129516
gh-93649: Add Modules/_testcapi/function.c file #129521https://github.com/python/cpython/pull/129521
gh-93649: Move _testcapi tests to specific files #129544https://github.com/python/cpython/pull/129544
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%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.