bpo-45310: Fix parrallel shared memory tests#28661
bpo-45310: Fix parrallel shared memory tests#28661serhiy-storchaka merged 2 commits intopython:mainfrom
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.
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.
It is used not only with SharedMemory, but with ShareableList.
There was a problem hiding this comment.
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 <storchaka@gmail.com>
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 <storchaka@gmail.com>
|
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 <storchaka@gmail.com>
|
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 <storchaka@gmail.com>
|
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 <storchaka@gmail.com>
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