-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
bpo-45310: Fix parrallel shared memory tests #28661
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
bpo-45310: Fix parrallel shared memory tests #28661
Conversation
Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel.
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 69ebc33 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
name_tsmb = self._new_shm_name('test01_tsmb') | ||
sms = shared_memory.SharedMemory(name_tsmb, create=True, size=512) |
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.
You may add an helper method which create a name and calls SharedMemory() with it. Or leave the code as it is, it's up to you.
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.
It is used not only with SharedMemory, but with ShareableList.
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.
Ah, I didn't notice. It's just a minor coding style suggestion. The code is good as it is.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
GH-28669 is a backport of this pull request to the 3.10 branch. |
Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel. (cherry picked from commit eb4495e) Co-authored-by: Serhiy Storchaka <[email protected]>
Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel.. (cherry picked from commit eb4495e) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-28670 is a backport of this pull request to the 3.9 branch. |
Thanks for adding the comment, it's useful to me at least ;-) |
Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel. (cherry picked from commit eb4495e) Co-authored-by: Serhiy Storchaka <[email protected]>
|
Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel. (cherry picked from commit eb4495e) Co-authored-by: Serhiy Storchaka <[email protected]>
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
GH-28979 is a backport of this pull request to the 3.8 branch. |
Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel. (cherry picked from commit eb4495e) Co-authored-by: Serhiy Storchaka <[email protected]>
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
https://bugs.python.org/issue45310