bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing by sobolevn · Pull Request #28377 · python/cpython
I'm kind of unhappy that you have to prepend "/". SharedMemory._prepend_leading_slash does a magic dance (add/remove "/" prefix) with SharedMemory(name) constructor parameter and in SharedMemory.name property
Yes, me too. I've tried several other things like smm.name (was not producing the correct result by raising KeyError). After several attempts this was the simplest solution. And since we only run this part on posix, it should work correctly.