summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-09-25 15:19:51 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-09-25 15:19:51 (GMT)
commit2fcd03bb77fbd3d0b186c15b46de47cf0422ba68 (patch)
tree77b598fc4123790de8f4f4b210339a65a7c9f009 /Lib/test
parent143d433896a812ab1235eb390d41523cec17a34a (diff)
downloadcpython-2fcd03bb77fbd3d0b186c15b46de47cf0422ba68.zip
cpython-2fcd03bb77fbd3d0b186c15b46de47cf0422ba68.tar.gz
cpython-2fcd03bb77fbd3d0b186c15b46de47cf0422ba68.tar.bz2
http://bugs.python.org/issue6971
Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_socket.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 66a402b..472f403 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -543,6 +543,10 @@ class GeneralModuleTests(unittest.TestCase):
self.assertTrue(hasattr(socket, 'SIO_RCVALL'))
self.assertTrue(hasattr(socket, 'RCVALL_ON'))
self.assertTrue(hasattr(socket, 'RCVALL_OFF'))
+ self.assertTrue(hasattr(socket, 'SIO_KEEPALIVE_VALS'))
+ s = socket.socket()
+ self.assertRaises(ValueError, s.ioctl, -1, None)
+ s.ioctl(socket.SIO_KEEPALIVE_VALS, (1, 100, 100))
class BasicTCPTest(SocketConnectedTest):