René's URL Explorer Experiment


Title: gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization by sergey-miryanov · Pull Request #136304 · python/cpython · GitHub

Open Graph Title: gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization by sergey-miryanov · Pull Request #136304 · python/cpython

X Title: gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization by sergey-miryanov · Pull Request #136304 · python/cpython

Description: Tests for #136189 Issue: Segmentation fault, possibly due to a GC issue (tp_subclasses) #135552

Open Graph Description: Tests for #136189 Issue: Segmentation fault, possibly due to a GC issue (tp_subclasses) #135552

X Description: Tests for #136189 Issue: Segmentation fault, possibly due to a GC issue (tp_subclasses) #135552

Opengraph URL: https://github.com/python/cpython/pull/136304

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:06845dfe-c728-3fe2-5b06-bc1ecbd450e2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC8FE:E8423:1E8BBDA:28728F7:696B007D
html-safe-nonce06bb4a8b6a3186d4b0f484a598f748ac3581586beda5f44eba64fb9f183c554c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEZFOkU4NDIzOjFFOEJCREE6Mjg3MjhGNzo2OTZCMDA3RCIsInZpc2l0b3JfaWQiOiI1MjU5MDMzMzE3OTM0MzAxMzA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8405dae7c05f8bf1244bdda52fbf7a3579a49af426821fe0af7205853fac696d
hovercard-subject-tagpull_request:2642267113
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/136304/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5a15370c1c555fc4b165b2a9b073d79ccf0547f032573f1eeecbd97218d75a05/python/cpython/pull/136304
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5a15370c1c555fc4b165b2a9b073d79ccf0547f032573f1eeecbd97218d75a05/python/cpython/pull/136304
og:image:altTests for #136189 Issue: Segmentation fault, possibly due to a GC issue (tp_subclasses) #135552
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesergey-miryanov
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/pull/136304#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136304
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%2Fpull%2F136304
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/136304
Reloadhttps://github.com/python/cpython/pull/136304
Reloadhttps://github.com/python/cpython/pull/136304
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/136304
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/pull/136304
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/136304#issue-comment-box
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
sergey-miryanov:gh-135552-add-tests-gc-weakref-tp_subclasseshttps://github.com/sergey-miryanov/cpython/tree/gh-135552-add-tests-gc-weakref-tp_subclasses
gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization https://github.com/python/cpython/pull/136304#top
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
sergey-miryanov:gh-135552-add-tests-gc-weakref-tp_subclasseshttps://github.com/sergey-miryanov/cpython/tree/gh-135552-add-tests-gc-weakref-tp_subclasses
Conversation 11 https://github.com/python/cpython/pull/136304
Commits 13 https://github.com/python/cpython/pull/136304/commits
Checks 38 https://github.com/python/cpython/pull/136304/checks
Files changed https://github.com/python/cpython/pull/136304/files
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Jul 4, 2025https://github.com/python/cpython/pull/136304#issue-3203630831
Please reload this pagehttps://github.com/python/cpython/pull/136304
#136189https://github.com/python/cpython/pull/136189
Segmentation fault, possibly due to a GC issue (tp_subclasses) #135552https://github.com/python/cpython/issues/135552
Please reload this pagehttps://github.com/python/cpython/pull/136304
fxeqxmulfxhttps://github.com/fxeqxmulfx
July 4, 2025 23:48https://github.com/python/cpython/pull/136304#commits-pushed-4d648b4
https://github.com/fxeqxmulfx
https://github.com/sergey-miryanov
Add testshttps://github.com/python/cpython/pull/136304/commits/4d648b48aaabb1bf0cf76414d1ac629cadaf7534
4d648b4https://github.com/python/cpython/pull/136304/commits/4d648b48aaabb1bf0cf76414d1ac629cadaf7534
https://github.com/sergey-miryanov
Organize testshttps://github.com/python/cpython/pull/136304/commits/77e9ca7b9a0b5c5aed790735d7653120d34516e0
77e9ca7https://github.com/python/cpython/pull/136304/commits/77e9ca7b9a0b5c5aed790735d7653120d34516e0
https://github.com/sergey-miryanov
Simplify testshttps://github.com/python/cpython/pull/136304/commits/b6825da9df07a27a19a8ef36a870c8f0b46d5f29
b6825dahttps://github.com/python/cpython/pull/136304/commits/b6825da9df07a27a19a8ef36a870c8f0b46d5f29
https://github.com/sergey-miryanov
Remove extra linehttps://github.com/python/cpython/pull/136304/commits/f62d43e6af2dc76a6c96f950ec3acce03e8dbf41
f62d43ehttps://github.com/python/cpython/pull/136304/commits/f62d43e6af2dc76a6c96f950ec3acce03e8dbf41
https://github.com/sergey-miryanov
Add extra commentshttps://github.com/python/cpython/pull/136304/commits/398c4f58f5dd07746a5969d63676e509efa5669d
398c4f5https://github.com/python/cpython/pull/136304/commits/398c4f58f5dd07746a5969d63676e509efa5669d
https://github.com/sergey-miryanov
Add tests for checking that weakrefs clears before and after finaliza…https://github.com/python/cpython/pull/136304/commits/7dd966925f469f715b1503bf44954ab002ac47d0
7dd9669https://github.com/python/cpython/pull/136304/commits/7dd966925f469f715b1503bf44954ab002ac47d0
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Jul 4, 2025https://github.com/python/cpython/pull/136304#event-18477685945
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 4, 2025 https://github.com/python/cpython/pull/136304#ref-issue-3148205005
Segmentation fault, possibly due to a GC issue (tp_subclasses) #135552 https://github.com/python/cpython/issues/135552
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Jul 4, 2025https://github.com/python/cpython/pull/136304#issuecomment-3037182590
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jul 4, 2025https://github.com/python/cpython/pull/136304#event-18478240716
https://github.com/neonene
neonenehttps://github.com/neonene
Jul 4, 2025 https://github.com/python/cpython/pull/136304#pullrequestreview-2988381493
View reviewed changes https://github.com/python/cpython/pull/136304/files/7dd966925f469f715b1503bf44954ab002ac47d0
Lib/test/test_gc.pyhttps://github.com/python/cpython/pull/136304/files/7dd966925f469f715b1503bf44954ab002ac47d0#diff-9d9e863bd2a456b669ec9600be793699e861340d91d7c417a8a5b5b8cfbd09a7
Please reload this pagehttps://github.com/python/cpython/pull/136304
sergey-miryanovhttps://github.com/sergey-miryanov
July 5, 2025 21:10https://github.com/python/cpython/pull/136304#commits-pushed-1da73b3
https://github.com/sergey-miryanov
Make tests a little bit reliablehttps://github.com/python/cpython/pull/136304/commits/1da73b37fe813c77bae73adf9b29f4a898cf3cb8
1da73b3https://github.com/python/cpython/pull/136304/commits/1da73b37fe813c77bae73adf9b29f4a898cf3cb8
https://github.com/sergey-miryanov
Simplify testshttps://github.com/python/cpython/pull/136304/commits/05105397ead70678bf2484f11772e845c038b407
0510539https://github.com/python/cpython/pull/136304/commits/05105397ead70678bf2484f11772e845c038b407
https://github.com/sergey-miryanov
Use unittest assertshttps://github.com/python/cpython/pull/136304/commits/50410d6b90ec8fd4a957678ada48431b648b1a22
50410d6https://github.com/python/cpython/pull/136304/commits/50410d6b90ec8fd4a957678ada48431b648b1a22
https://github.com/nascheme
naschemehttps://github.com/nascheme
Jul 8, 2025https://github.com/python/cpython/pull/136304#issuecomment-3047026014
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/sergey-miryanov
Move test_clearing_weakrefs_in_gc to test_weakrefhttps://github.com/python/cpython/pull/136304/commits/aa18e7431ec27e9049f2c7badc024469979d8591
aa18e74https://github.com/python/cpython/pull/136304/commits/aa18e7431ec27e9049f2c7badc024469979d8591
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
kumaraditya303https://github.com/kumaraditya303
code ownerhttps://github.com/python/cpython/blob/5b78c85fb4cde94bb2637f683025ff71af76d48a/.github/CODEOWNERS#L326
July 8, 2025 07:07https://github.com/python/cpython/pull/136304#event-18519171090
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Jul 8, 2025https://github.com/python/cpython/pull/136304#issuecomment-3047637296
@naschemehttps://github.com/nascheme
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jul 8, 2025 https://github.com/python/cpython/pull/136304#pullrequestreview-2996327117
View reviewed changes https://github.com/python/cpython/pull/136304/files/aa18e7431ec27e9049f2c7badc024469979d8591
Lib/test/test_gc.pyhttps://github.com/python/cpython/pull/136304/files/aa18e7431ec27e9049f2c7badc024469979d8591#diff-9d9e863bd2a456b669ec9600be793699e861340d91d7c417a8a5b5b8cfbd09a7
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jul 8, 2025 https://github.com/python/cpython/pull/136304#pullrequestreview-2996327919
View reviewed changes https://github.com/python/cpython/pull/136304/files/aa18e7431ec27e9049f2c7badc024469979d8591
Lib/test/test_gc.pyhttps://github.com/python/cpython/pull/136304/files/aa18e7431ec27e9049f2c7badc024469979d8591#diff-9d9e863bd2a456b669ec9600be793699e861340d91d7c417a8a5b5b8cfbd09a7
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/sergey-miryanov
https://github.com/kumaraditya303
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/136304/commits/7788e5537014c96d729c73d7982cf208c16deef5
7788e55https://github.com/python/cpython/pull/136304/commits/7788e5537014c96d729c73d7982cf208c16deef5
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Jul 8, 2025https://github.com/python/cpython/pull/136304#issuecomment-3047703105
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/136304
naschemehttps://github.com/nascheme
August 7, 2025 16:37https://github.com/python/cpython/pull/136304#commits-pushed-d125d06
https://github.com/nascheme
Merge branch 'main' intohttps://github.com/python/cpython/pull/136304/commits/d125d06f762e60cdafd9ab9dbe34a650134a472c
pythongh-135552https://github.com/python/cpython/issues/135552
-add-tests-gc-weakref-tp_subc…https://github.com/python/cpython/pull/136304/commits/d125d06f762e60cdafd9ab9dbe34a650134a472c
d125d06https://github.com/python/cpython/pull/136304/commits/d125d06f762e60cdafd9ab9dbe34a650134a472c
https://github.com/nascheme
Revise test_clearing_weakrefs_in_gc testhttps://github.com/python/cpython/pull/136304/commits/0339d544908326dfb5a9c0c3bb138f40b654c65f
0339d54https://github.com/python/cpython/pull/136304/commits/0339d544908326dfb5a9c0c3bb138f40b654c65f
https://github.com/nascheme
naschemehttps://github.com/nascheme
25518f5https://github.com/python/cpython/commit/25518f51dc9fd3ffe4f8ae5d53baa3728936be2b
Aug 8, 2025https://github.com/python/cpython/pull/136304#event-19045603393
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 8, 2025https://github.com/python/cpython/pull/136304#event-19045603680
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Aug 8, 2025https://github.com/python/cpython/pull/136304#issuecomment-3166549672
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
August 8, 2025 04:42https://github.com/python/cpython/pull/136304#event-19047357688
Agent-Hellboyhttps://github.com/Agent-Hellboy
Aug 19, 2025 https://github.com/python/cpython/pull/136304#ref-commit-e46342e
https://github.com/sergey-miryanov
https://github.com/fxeqxmulfx
https://github.com/kumaraditya303
https://github.com/nascheme
https://github.com/Agent-Hellboy
pythonGH-135552https://github.com/python/cpython/issues/135552
: Add tests to check weakref clearing (https://github.com/Agent-Hellboy/cpython/commit/e46342ecdc4d95c1c065f53beec1ccf8fa06ba7a
pythonGH-136304https://github.com/python/cpython/pull/136304
)https://github.com/Agent-Hellboy/cpython/commit/e46342ecdc4d95c1c065f53beec1ccf8fa06ba7a
e46342ehttps://github.com/Agent-Hellboy/cpython/commit/e46342ecdc4d95c1c065f53beec1ccf8fa06ba7a
pythonGH-136189https://github.com/python/cpython/pull/136189
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136304
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/136304/files/aa18e7431ec27e9049f2c7badc024469979d8591
https://github.com/neonene
neonene https://github.com/neonene
https://github.com/python/cpython/pull/136304/files/7dd966925f469f715b1503bf44954ab002ac47d0
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Please reload this pagehttps://github.com/python/cpython/pull/136304
https://github.com/sergey-miryanov
https://github.com/nascheme
https://github.com/neonene
https://github.com/kumaraditya303
https://github.com/StanFromIreland
https://github.com/fxeqxmulfx
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.