Commit 37fb0f74 authored by Victor Stinner's avatar Victor Stinner

Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong

parent 351182ca
......@@ -4759,7 +4759,7 @@ class InheritanceTest(unittest.TestCase):
with socket.socket(socket.AF_INET,
socket.SOCK_STREAM | socket.SOCK_CLOEXEC) as s:
self.assertTrue(s.type & socket.SOCK_CLOEXEC)
self.assertTrue(sock.get_inheritable())
self.assertFalse(s.get_inheritable())
def test_default_inheritable(self):
sock = socket.socket()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment