mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
This commit is contained in:
parent
bff989ed20
commit
d39dca9e33
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue