[New-bugs-announce] [issue29184] skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)

Xavier de Gaye report at bugs.python.org
Fri Jan 6 14:48:57 EST 2017


New submission from Xavier de Gaye:

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

----------
assignee: xdegaye
components: Tests
messages: 284845
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29184>
_______________________________________


More information about the New-bugs-announce mailing list