Skip to content

skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android) #73370

Closed

Description

@xdegaye
mannequin
BPO 29184
Nosy @xdegaye
PRs
  • bpo-29184: Skip test_socketserver tests on PermissionError raised by … #4387
  • Files
  • test_socketserver.patch
  • issue29184_01.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 = None
    closed_at = <Date 2017-11-18.17:13:50.789>
    created_at = <Date 2017-01-06.19:48:57.092>
    labels = ['3.7', 'type-bug', 'tests']
    title = 'skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)'
    updated_at = <Date 2017-11-18.17:13:50.788>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2017-11-18.17:13:50.788>
    actor = 'xdegaye'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-18.17:13:50.789>
    closer = 'xdegaye'
    components = ['Tests']
    creation = <Date 2017-01-06.19:48:57.092>
    creator = 'xdegaye'
    dependencies = []
    files = ['46201', '46234']
    hgrepos = []
    issue_num = 29184
    keywords = ['patch']
    message_count = 4.0
    messages = ['284845', '284936', '285067', '306485']
    nosy_count = 1.0
    nosy_names = ['xdegaye']
    pr_nums = ['4387']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29184'
    versions = ['Python 3.7']

    Activity

    1. xdegaye commented on Jan 6, 2017

      xdegayemannequin
      MannequinAuthor

      This happens on Android for a non-root user. Multiple tests fail in test_socketserver with identical backtraces, only the first one is listed here.

      ====================================================================== [905/2616]
      ERROR: test_ForkingUnixDatagramServer (test.test_socketserver.SocketServerTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/sdcard/org.bitbucket.pyona/lib/python3.7/test/test_socketserver.py", line 243, in test_Fork
      ingUnixDatagramServer
          self.dgram_examine)
        File "/sdcard/org.bitbucket.pyona/lib/python3.7/test/support/__init__.py", line 2040, in decorator
          return func(*args)
        File "/sdcard/org.bitbucket.pyona/lib/python3.7/test/test_socketserver.py", line 121, in run_serve
      r
          svrcls, hdlrbase)
        File "/sdcard/org.bitbucket.pyona/lib/python3.7/test/test_socketserver.py", line 114, in make_serv
      er
          server = MyServer(addr, MyHandler)
        File "/sdcard/org.bitbucket.pyona/lib/python3.7/socketserver.py", line 452, in __init__
          self.server_bind()
        File "/sdcard/org.bitbucket.pyona/lib/python3.7/socketserver.py", line 466, in server_bind
          self.socket.bind(self.server_address)
      PermissionError: [Errno 13] Permission denied
    2. self-assigned this
      on Jan 6, 2017
    3. added
      testsTests in the Lib/test dir
      type-bugAn unexpected behavior, bug, or error
      on Jan 6, 2017
    4. xdegaye commented on Jan 7, 2017

      xdegayemannequin
      MannequinAuthor

      Patch attached.

    5. xdegaye commented on Jan 9, 2017

      xdegayemannequin
      MannequinAuthor

      New patch following Serhiy's suggestion in msg285008.

    6. removed their assignment
      on Feb 3, 2017
    7. xdegaye commented on Nov 18, 2017

      xdegayemannequin
      MannequinAuthor

      New changeset 9001d1f by xdegaye in branch 'master':
      bpo-29184: Skip test_socketserver tests on PermissionError raised by Android (GH-4387)
      9001d1f

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions