Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect __all__ list in multiprocessing.managers module #83021

Closed
xdegaye mannequin opened this issue Nov 18, 2019 · 5 comments
Closed

incorrect __all__ list in multiprocessing.managers module #83021

xdegaye mannequin opened this issue Nov 18, 2019 · 5 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Nov 18, 2019

BPO 38840
Nosy @pitrou, @ambv, @applio, @ZackerySpytz, @miss-islington
PRs
  • bpo-38840: Fix test___all__ on platforms lacking #17296
  • bpo-38840: Incorrect __all__ in multiprocessing.managers #18034
  • [3.9] bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) #27684
  • [3.10] bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) #27685
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-08-09.17:39:45.230>
    created_at = <Date 2019-11-18.22:18:22.421>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'incorrect __all__ list in multiprocessing.managers module'
    updated_at = <Date 2021-08-09.17:39:45.230>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2021-08-09.17:39:45.230>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-09.17:39:45.230>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2019-11-18.22:18:22.421>
    creator = 'xdegaye'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38840
    keywords = ['patch']
    message_count = 5.0
    messages = ['356922', '358165', '399277', '399282', '399283']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'lukasz.langa', 'davin', 'ZackerySpytz', 'miss-islington']
    pr_nums = ['17296', '18034', '27684', '27685']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38840'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 18, 2019

    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

    @xdegaye xdegaye mannequin added 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 18, 2019
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Dec 10, 2019

    Not interested anymore in android stuff.

    @ZackerySpytz ZackerySpytz mannequin added 3.7 (EOL) end of life 3.8 only security fixes labels Jan 17, 2020
    @ambv
    Copy link
    Contributor

    ambv commented Aug 9, 2021

    New changeset d097876 by Zackery Spytz in branch 'main':
    bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)
    d097876

    @ambv
    Copy link
    Contributor

    ambv commented Aug 9, 2021

    New changeset 40b353b by Miss Islington (bot) in branch '3.9':
    bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034) (GH-27684)
    40b353b

    @miss-islington
    Copy link
    Contributor

    New changeset 8ece98a by Miss Islington (bot) in branch '3.10':
    bpo-38840: Incorrect __all__ in multiprocessing.managers (GH-18034)
    8ece98a

    @ambv ambv closed this as completed Aug 9, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants