[Python-checkins] cpython: Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
victor.stinner
python-checkins at python.org
Wed Aug 28 12:44:48 CEST 2013
http://hg.python.org/cpython/rev/2cb26c67a55a
changeset: 85432:2cb26c67a55a
user: Victor Stinner <vstinner at wyplay.com>
date: Wed Aug 28 12:28:18 2013 +0200
summary:
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
files:
Lib/test/test_socket.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -4759,7 +4759,7 @@
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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list