[New-bugs-announce] [issue38840] incorrect __all__ list in multiprocessing.managers module
Xavier de Gaye
report at bugs.python.org
Mon Nov 18 17:18:22 EST 2019
New submission from Xavier de Gaye <xdegaye at gmail.com>:
On android which is a platform that is missing the shared memory implementation, test___all__ fails because 'multiprocessing.managers' has no attribute 'SharedMemoryManager' which is listed in __all__.
2|generic_x86_64:/data/local/tmp/python $ python
Python 3.9.0a0 (heads/abifa-dirty:cf805c25e6, Nov 18 2019, 16:40:26)
[Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462 on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing.shared_memory
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/local/tmp/python/lib/python3.9/multiprocessing/shared_memory.py", line 22, in <module>
import _posixshmem
ModuleNotFoundError: No module named '_posixshmem'
>>>
2|generic_x86_64:/data/local/tmp/python $ python -m test test___all__
0:00:00 Run tests sequentially
0:00:00 [1/1] test___all__
test test___all__ failed -- Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.9/test/test___all__.py", line 38, in check_all
exec("from %s import *" % modname, names)
AttributeError: module 'multiprocessing.managers' has no attribute 'SharedMemoryManager'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/local/tmp/python/lib/python3.9/test/test___all__.py", line 41, in check_all
self.fail("__all__ failure in {}: {}: {}".format(
AssertionError: __all__ failure in multiprocessing.managers: AttributeError: module 'multiprocessing.managers' has no attribute 'SharedMemoryManager'
test___all__ failed
== Tests result: FAILURE ==
1 test failed:
test___all__
Total duration: 1.8 sec
Tests result: FAILURE
----------
components: Library (Lib)
messages: 356922
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: incorrect __all__ list in multiprocessing.managers module
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38840>
_______________________________________
More information about the New-bugs-announce
mailing list