gh-131677: Fix flaky test_lru_cache_threaded3#131679
Conversation
The call to `with self.subTest(...)` was not thread-safe.
|
@serhiy-storchaka This is your code. Do you want to take a look? @colesbury Can |
I think practically you'd have to get rid of |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM! 👍
Surprised that it did not fail more often. 🤔
|
As you fix these, perhaps keep a list of tools that are intrinsically single-threaded. Such as list might be useful for linters and it might make a good FAQ entry. |
|
Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
The call to `with self.subTest(...)` was not thread-safe. (cherry picked from commit a123245) Co-authored-by: Sam Gross <colesbury@gmail.com>
|
GH-131692 is a backport of this pull request to the 3.13 branch. |
|
Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
The call to `with self.subTest(...)` was not thread-safe. (cherry picked from commit a123245) Co-authored-by: Sam Gross <colesbury@gmail.com>
|
GH-131693 is a backport of this pull request to the 3.12 branch. |
The call to `with self.subTest(...)` was not thread-safe.
The call to
with self.subTest(...)was not thread-safe.test_lru_cache_threaded3#131677