-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-124722: Fix leak in test_detach_materialized_dict_no_memory
#124769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks fine, but I'm worried about what problems that _testcapi.set_nomemory
is causing. Could you elaborate on that? (This seems like more of a bandaid than an actual fix for that function.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I thought of the same approach.
@ZeroIntensity please, take a look at The more complex fix would be:
But, this change would be much more complex, that's why I went with the simplier (and already existing) fix instead. |
Yeah, it's good to get this in sooner. I'll look into fixing |
!buildbot .RHEL8 Refleak. |
🤖 New build scheduled with the buildbot fleet by @zware for commit e7a409b 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
The buildbots look happy with this, so I'm going ahead with the merge to get them cleaned up. @markshannon, it could still use a post-merge OK from you to confirm that it's still testing what you wanted to test. |
pythonGH-124769) (cherry picked from commit 6f4d64b) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-124777 is a backport of this pull request to the 3.13 branch. |
The leak was in setting
_testcapi.set_nomemory(0, 1)
, in other places it is only used together withassert_python_ok
I also marked this test as
cpython_only
and I also skip it if_testcapi
is not present.Local run:
test_class.TestInlineValues.test_detach_materialized_dict_no_memory
leaks references #124722