diff options
author | Zackery Spytz <zspytz@gmail.com> | 2021-08-09 09:44:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 18:44:55 +0200 |
commit | d0978761118856e8ca8ea7b162a6585b8da83df9 (patch) | |
tree | 4a015a3805a29af1fece14ae4909a521afd3b792 /Lib/multiprocessing/managers.py | |
parent | b05e9b63fcfcd4bd7a6434fa9f9a7028d12f91c4 (diff) | |
download | cpython-git-d0978761118856e8ca8ea7b162a6585b8da83df9.tar.gz |
bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)
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>
Diffstat (limited to 'Lib/multiprocessing/managers.py')
-rw-r--r-- | Lib/multiprocessing/managers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 9c7e92faec..cf637c6cbb 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -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 |