From 463bf8fa3852edcf5dbe7ab692ba7693ebe22316 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Mon, 4 May 2020 10:53:53 +0800 Subject: [PATCH] don't define shared memory block's name in test_shared_memory_across_processes() --- Lib/test/_test_multiprocessing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index dd894f21f7afcd..dc8164f3288e1b 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -3860,7 +3860,9 @@ class OptionalAttachSharedMemory(shared_memory.SharedMemory): sms.close() def test_shared_memory_across_processes(self): - sms = shared_memory.SharedMemory('test02_tsmap', True, size=512) + # bpo-40135: don't define shared memory block's name in case of + # the failure when we run multiprocessing tests in parallel. + sms = shared_memory.SharedMemory(create=True, size=512) self.addCleanup(sms.unlink) # Verify remote attachment to existing block by name is working.