Skip to content

Commit

Permalink
gh-95212: make multiprocessing test case parallel-safe (GH-95213)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored Jul 25, 2022
1 parent 3e718cf commit 5956de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/_test_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3973,7 +3973,7 @@ def test_shared_memory_recreate(self):
'multiprocessing.shared_memory._make_filename') as mock_make_filename:

NAME_PREFIX = shared_memory._SHM_NAME_PREFIX
names = ['test01_fn', 'test02_fn']
names = [self._new_shm_name('test03_fn'), self._new_shm_name('test04_fn')]
# Prepend NAME_PREFIX which can be '/psm_' or 'wnsm_', necessary
# because some POSIX compliant systems require name to start with /
names = [NAME_PREFIX + name for name in names]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Make multiprocessing test case ``test_shared_memory_recreate``
parallel-safe.

0 comments on commit 5956de1

Please sign in to comment.