[New-bugs-announce] [issue45254] HAS_SHMEM detection logic is duplicated in implementation and tests
Nikita Sobolev
report at bugs.python.org
Tue Sep 21 03:49:36 EDT 2021
New submission from Nikita Sobolev <mail at 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 <report at bugs.python.org>
<https://bugs.python.org/issue45254>
_______________________________________
More information about the New-bugs-announce
mailing list