Kaydet (Commit) d39dca9e authored tarafından Victor Stinner's avatar Victor Stinner

Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong

üst bff989ed
...@@ -4759,7 +4759,7 @@ class InheritanceTest(unittest.TestCase): ...@@ -4759,7 +4759,7 @@ class InheritanceTest(unittest.TestCase):
with socket.socket(socket.AF_INET, with socket.socket(socket.AF_INET,
socket.SOCK_STREAM | socket.SOCK_CLOEXEC) as s: socket.SOCK_STREAM | socket.SOCK_CLOEXEC) as s:
self.assertTrue(s.type & socket.SOCK_CLOEXEC) self.assertTrue(s.type & socket.SOCK_CLOEXEC)
self.assertTrue(sock.get_inheritable()) self.assertFalse(s.get_inheritable())
def test_default_inheritable(self): def test_default_inheritable(self):
sock = socket.socket() 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