-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Don't hold a reference to the last job in the thread cache #1639
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1639 +/- ##
=======================================
Coverage 99.69% 99.69%
=======================================
Files 110 110
Lines 13894 13911 +17
Branches 1070 1070
=======================================
+ Hits 13852 13869 +17
Misses 27 27
Partials 15 15
|
hard to add test coverage for it? |
Yes. I adapted the
which unfortunately fails to trigger the problem in the unpatched case. |
CI failure is the mysterious #1604, nothing related to this. Nice catch, and we definitely want this. Can you add a test and newsfragment to the PR, though? |
return 42 | ||
|
||
def __del__(self): | ||
res[0] = True |
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.
so this is the instance's destructor, where my original report was on the class destructor
but I see that the bug indeed affects both of these. (I suppose that not destroying the instance is enough to keep a reference to the class?)
does this variant of the test fail before the patch?
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.
does this variant of the test fail before the patch?
I see it does 👍
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 couldn't easily reproduce the problem using a class destructor, so I opted for a minimal test that shows the reference to be gone / some destructor to be called.
Fixes #1638