New submission from Nikita Sobolev <m...@sobolevn.me>:
`HAS_SHMEM` is defined in `multiprocessing.managers` module https://github.com/python/cpython/blob/0bfa1106acfcddc03590e1f5d6789dbad3affe70/Lib/multiprocessing/managers.py#L35-L40 Later the same logic is duplicated in `_test_multiprocessing`: https://github.com/python/cpython/blob/0bfa1106acfcddc03590e1f5d6789dbad3affe70/Lib/test/_test_multiprocessing.py#L52-L56 We can just use `multiprocessing.managers.HAS_SHMEM` instead. I am going to send a PR with the fix. ---------- messages: 402291 nosy: sobolevn priority: normal severity: normal status: open title: HAS_SHMEM detection logic is duplicated in implementation and tests type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45254> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com