[issue28746] cannot set_inheritable() for a file descriptor on Android
Xavier de Gaye
report at bugs.python.org
Sat Nov 19 09:19:33 EST 2016
New submission from Xavier de Gaye:
test_socket on Android fails with:
FAIL: test_set_inheritable (test.test_socket.InheritanceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sdcard/org.bitbucket.pyona/lib/python3.7/test/test_socket.py", line 4936, in test_set_inheritable
self.assertEqual(sock.get_inheritable(), True)
AssertionError: False != True
======================================================================
FAIL: test_set_inheritable_cloexec (test.test_socket.InheritanceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sdcard/org.bitbucket.pyona/lib/python3.7/test/test_socket.py", line 4965, in test_set_inheritable_cloexec
0)
AssertionError: 1 != 0
Setting a file descriptor with os.set_inheritable() also fails.
Setting directly the file descriptor with fcntl.fcntl() succeeds.
----------
assignee: xdegaye
components: Interpreter Core
messages: 281221
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: cannot set_inheritable() for a file descriptor on Android
type: behavior
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28746>
_______________________________________
More information about the Python-bugs-list
mailing list