You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android) #73370
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=Noneclosed_at=<Date2017-11-18.17:13:50.789>created_at=<Date2017-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=<Date2017-11-18.17:13:50.788>user='https://github.com/xdegaye'
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 decoratorreturn 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_bindself.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied
Activity
xdegaye commentedon 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)
----------------------------------------------------------------------
xdegaye commentedon Jan 7, 2017
Patch attached.
xdegaye commentedon Jan 9, 2017
New patch following Serhiy's suggestion in msg285008.
xdegaye commentedon 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