summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2013-08-28 10:28:18 (GMT)
committerVictor Stinner <vstinner@wyplay.com>2013-08-28 10:28:18 (GMT)
commitd39dca9e33e6be0d234184eb1527c00ec04f8857 (patch)
tree288675383913933b32d12ae96d0b229d1bf51d88 /Lib/test/test_socket.py
parentbff989ed201d9b566881705aa876300845390a7d (diff)
downloadcpython-d39dca9e33e6be0d234184eb1527c00ec04f8857.zip
cpython-d39dca9e33e6be0d234184eb1527c00ec04f8857.tar.gz
cpython-d39dca9e33e6be0d234184eb1527c00ec04f8857.tar.bz2
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 1 insertions, 1 deletions
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()