diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index e02a6209bee8d28..e9446ff138170bf 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -4148,9 +4148,9 @@ def test_shared_memory_SharedMemoryManager_named_objects(self): shm_name = 'test_named_shared_memory' sl_name = 'test_named_sharable_list' with multiprocessing.managers.SharedMemoryManager() as smm: - shm = smm.SharedMemory(size=5, name=shm_name) + shm = smm.SharedMemory(size=32, name=shm_name) doppleganger_shm = shared_memory.SharedMemory(name=shm_name) - self.assertEqual(len(doppleganger_shm.buf), 5) + self.assertGreaterEqual(len(doppleganger_shm.buf), 32) sl = smm.ShareableList(range(5), name=sl_name) doppleganger_sl = shared_memory.ShareableList(name=sl_name) self.assertEqual(len(doppleganger_sl), 5)