gh-140729: Fix the cProfile module when the executed script contains calls to multiprocessing.Process#144715
Conversation
…uTPQp.rst Co-authored-by: AN Long <aisk@users.noreply.github.com>
|
This PR is stale because it has been open for 30 days with no activity. |
+ Move unittest + Update news file + run make regen-configure
|
@aisk Could you help me about the failing test please ? |
|
I pushed a small fix for this. Can you take a look? |
I agree with the comment in The fix also works with the EDIT: I pushed a new commit including all the |
|
Thanks @YvesDup for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @YvesDup and @pablogsal, I could not cleanly backport this to |
|
GH-153243 is a backport of this pull request to the 3.15 branch. |
|
Sorry, @YvesDup and @pablogsal, I could not cleanly backport this to |
|
Because the |
|
GH-153265 is a backport of this pull request to the 3.14 branch. |
|
The But while trying to backport this to 3.13, I found that because #132738 was not backported to 3.13 and it changed the surrounding code, we can't simply backport the current PR. Since 3.13 will reach end of life in around two months, I think we can just leave it as it is. |
When profilng the ttt.py script via
cProfilemodule ,an error occurs:
This fix does not apply to the
profilemodule, which is deprecated and will be removed in python 3.17.