bpo-38840: Incorrect __all__ in multiprocessing.managers
This was causing test___all__ to fail on platforms lacking a shared memory implementation. Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
This commit is contained in:
parent
9baf242fc7
commit
b4f5eb6e52
|
@ -8,8 +8,7 @@
|
|||
# Licensed to PSF under a Contributor Agreement.
|
||||
#
|
||||
|
||||
__all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token',
|
||||
'SharedMemoryManager' ]
|
||||
__all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token' ]
|
||||
|
||||
#
|
||||
# Imports
|
||||
|
@ -35,6 +34,7 @@ from . import get_context
|
|||
try:
|
||||
from . import shared_memory
|
||||
HAS_SHMEM = True
|
||||
__all__.append('SharedMemoryManager')
|
||||
except ImportError:
|
||||
HAS_SHMEM = False
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix ``test___all__`` on platforms lacking a shared memory implementation.
|
Loading…
Reference in New Issue