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:
Zackery Spytz 2020-01-16 23:42:46 -07:00
parent 9baf242fc7
commit b4f5eb6e52
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1 @@
Fix ``test___all__`` on platforms lacking a shared memory implementation.