◐ Shell
clean mode source ↗

Issue 28746: cannot set_inheritable() for a file descriptor on Android

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.