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

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

Closed
xdegaye mannequin opened this issue Jan 6, 2017 · 4 comments
Closed
Labels
3.7 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Jan 6, 2017

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']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jan 6, 2017

    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

    @xdegaye xdegaye mannequin self-assigned this Jan 6, 2017
    @xdegaye xdegaye mannequin added 3.7 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jan 6, 2017
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jan 7, 2017

    Patch attached.

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jan 9, 2017

    New patch following Serhiy's suggestion in msg285008.

    @xdegaye xdegaye mannequin removed their assignment Feb 3, 2017
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 18, 2017

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

    @xdegaye xdegaye mannequin closed this as completed Nov 18, 2017
    @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 tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants