[issue45254] HAS_SHMEM detection logic is duplicated in implementation and tests

Łukasz Langa report at bugs.python.org
Tue Sep 28 08:32:24 EDT 2021


Łukasz Langa <lukasz at langa.pl> added the comment:

The logic is currently duplicated because trying to import `shared_memory` is how support discovery is supposed to work in user code.

`multiprocessing.managers` doesn't export HAS_SHMEM (it's not in `__all__` and it's not documented). Making tests rely on it feels wrong to me. It might change in the future.

----------
nosy: +lukasz.langa
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45254>
_______________________________________


More information about the Python-bugs-list mailing list