From: Victor Stinner Date: Wed, 28 Aug 2013 10:28:18 +0000 (+0200) Subject: Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong X-Git-Tag: v3.4.0a2~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d39dca9e33e6be0d234184eb1527c00ec04f8857;p=python Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index c7b9ba8dd7..81b287655d 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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()