]> granicus.if.org Git - python/commitdiff
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
authorVictor Stinner <vstinner@wyplay.com>
Wed, 28 Aug 2013 10:28:18 +0000 (12:28 +0200)
committerVictor Stinner <vstinner@wyplay.com>
Wed, 28 Aug 2013 10:28:18 +0000 (12:28 +0200)
Lib/test/test_socket.py

index c7b9ba8dd79b434b361daf9206f626644af6e495..81b287655dc9aeba81255455a22d78bef841110c 100644 (file)
@@ -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()