mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) (GH-27684)
This was causing test___all__ to fail on platforms lacking a shared
memory implementation.
Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit d097876111
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
26539cea8a
commit
40b353bc07
2 changed files with 5 additions and 3 deletions
|
@ -8,8 +8,7 @@
|
|||
# Licensed to PSF under a Contributor Agreement.
|
||||
#
|
||||
|
||||
__all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token',
|
||||
'SharedMemoryManager' ]
|
||||
__all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token' ]
|
||||
|
||||
#
|
||||
# Imports
|
||||
|
@ -35,9 +34,11 @@ from . import util
|
|||
from . import get_context
|
||||
try:
|
||||
from . import shared_memory
|
||||
HAS_SHMEM = True
|
||||
except ImportError:
|
||||
HAS_SHMEM = False
|
||||
else:
|
||||
HAS_SHMEM = True
|
||||
__all__.append('SharedMemoryManager')
|
||||
|
||||
#
|
||||
# Register some things for pickling
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix ``test___all__`` on platforms lacking a shared memory implementation.
|
Loading…
Add table
Add a link
Reference in a new issue