Skip to content

android does not have pwd.getpwall() #71043

Closed

Description

@xdegaye
mannequin
BPO 26856
Nosy @xdegaye, @Fak3, @moreati
PRs
  • bpo-26856: Skip test_pwd on Android until issue 32033 is fixed #4561
  • Dependencies
  • bpo-27027: add the 'is_android' attribute to test.support
  • bpo-32033: The pwd module implementation incorrectly sets some attributes to None
  • Files
  • pwd.patch
  • pwd_2.patch
  • pwd_3.patch
  • 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 = 'https://github.com/xdegaye'
    closed_at = None
    created_at = <Date 2016-04-26.13:29:05.170>
    labels = ['3.7', 'tests', 'type-bug', 'library', 'build']
    title = 'android does not have pwd.getpwall()'
    updated_at = <Date 2017-11-25.16:33:07.817>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2017-11-25.16:33:07.817>
    actor = 'xdegaye'
    assignee = 'xdegaye'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'Tests', 'Cross-Build']
    creation = <Date 2016-04-26.13:29:05.170>
    creator = 'xdegaye'
    dependencies = ['27027', '32033']
    files = ['42608', '42913', '45855']
    hgrepos = []
    issue_num = 26856
    keywords = ['patch']
    message_count = 6.0
    messages = ['264279', '265919', '282975', '283082', '306962', '306966']
    nosy_count = 4.0
    nosy_names = ['xdegaye', 'python-dev', 'Roman.Evstifeev', 'Alex.Willmer']
    pr_nums = ['4561']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26856'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. xdegaye commented on Apr 26, 2016

      xdegayemannequin
      MannequinAuthor

      User ids on android are the ids of the applications and they are used to enforce the applications access rights. See the 'User IDs and File Access' section at http://developer.android.com/guide/topics/security/permissions.html.

      Most integers are existing user ids on android. This may explain why getpwall() is missing.
      Patch attached.

    2. added
      stdlib
      type-bug
      build
      on Apr 26, 2016
    3. xdegaye commented on May 20, 2016

      xdegayemannequin
      MannequinAuthor

      This new patch adds a dependency to issue bpo-27027.

    4. added
      3.7 (EOL)
      tests
      on Oct 28, 2016
    5. self-assigned this
      on Oct 28, 2016
    6. xdegaye commented on Dec 12, 2016

      xdegayemannequin
      MannequinAuthor

      Patch updated to the current head of the default branch.

    7. python-dev commented on Dec 13, 2016

      python-devmannequin
      Mannequin

      New changeset e89c9ab46d77 by Xavier de Gaye in branch '3.6':
      Issue bpo-26856: Fix the tests assuming that the pwd module has getpwall() and
      https://hg.python.org/cpython/rev/e89c9ab46d77

      New changeset 692083f85981 by Xavier de Gaye in branch 'default':
      Issue bpo-26856: Merge 3.6.
      https://hg.python.org/cpython/rev/692083f85981

    8. xdegaye commented on Nov 25, 2017

      xdegayemannequin
      MannequinAuthor

      The pwd module is broken when a member of the 'passwd’ data structure is NULL (bpo-32033).
      Remove _getpwall() and therefore skip test_pwd on Android until bpo-32033 is fixed.

    9. xdegaye commented on Nov 25, 2017

      xdegayemannequin
      MannequinAuthor

      New changeset 76fdac4 by xdegaye in branch 'master':
      bpo-26856: Skip test_pwd on Android until bpo-32033 is fixed (GH-4561)
      76fdac4

    10. transferred this issue fromon Apr 10, 2022
    11. kumaraditya303 commented on May 27, 2022

      @kumaraditya303
      Contributor

      Fixed by #4561

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)buildstdlibteststype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions