Skip to content

Commit 3d58b78

Browse files
bpo-37558: Shared memory tests are failing due to double slashes (GH-14703)
With the addition of shared memory into Python 3.8, we now have three tests failing on Solaris, namely `test_multiprocessing_fork`, `test_multiprocessing_forkserver` and `test_multiprocessing_spawn`. The reason seems to be incorrect name handling which results in two slashes being prepended. https://bugs.python.org/issue37558 (cherry picked from commit 4737265) Co-authored-by: Jakub Kulík <[email protected]>
1 parent 1071715 commit 3d58b78

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3990,7 +3990,7 @@ def test_shared_memory_cleaned_after_process_termination(self):
39903990
39913991
# Create a shared_memory segment, and send the segment name
39923992
sm = shared_memory.SharedMemory(create=True, size=10)
3993-
sys.stdout.write(sm._name + '\\n')
3993+
sys.stdout.write(sm.name + '\\n')
39943994
sys.stdout.flush()
39953995
time.sleep(100)
39963996
'''
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_shared_memory_cleaned_after_process_termination name handling

0 commit comments

Comments
 (0)