mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +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,
|
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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue