From d39dca9e33e6be0d234184eb1527c00ec04f8857 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 28 Aug 2013 12:28:18 +0200 Subject: Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong --- Lib/test/test_socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index c7b9ba8..81b2876 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() -- cgit v0.12