Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d39dca9

Browse files
committed
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
1 parent bff989e commit d39dca9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4759,7 +4759,7 @@ def test_SOCK_CLOEXEC(self):
47594759
with socket.socket(socket.AF_INET,
47604760
socket.SOCK_STREAM | socket.SOCK_CLOEXEC) as s:
47614761
self.assertTrue(s.type & socket.SOCK_CLOEXEC)
4762-
self.assertTrue(sock.get_inheritable())
4762+
self.assertFalse(s.get_inheritable())
47634763

47644764
def test_default_inheritable(self):
47654765
sock = socket.socket()

0 commit comments

Comments
 (0)