[Python-checkins] python/dist/src/Lib/test test_timeout.py,1.7,1.8
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 22 Aug 2002 13:18:41 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv3048
Modified Files:
test_timeout.py
Log Message:
Standardize behavior: no docstrings in test functions.
Index: test_timeout.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_timeout.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_timeout.py 23 Jul 2002 19:04:06 -0000 1.7
--- test_timeout.py 22 Aug 2002 20:18:38 -0000 1.8
***************
*** 18,27 ****
def testObjectCreation(self):
! "Test Socket creation"
self.assertEqual(self.sock.gettimeout(), None,
"timeout not disabled by default")
def testFloatReturnValue(self):
! "Test return value of gettimeout()"
self.sock.settimeout(7.345)
self.assertEqual(self.sock.gettimeout(), 7.345)
--- 18,27 ----
def testObjectCreation(self):
! # Test Socket creation
self.assertEqual(self.sock.gettimeout(), None,
"timeout not disabled by default")
def testFloatReturnValue(self):
! # Test return value of gettimeout()
self.sock.settimeout(7.345)
self.assertEqual(self.sock.gettimeout(), 7.345)
***************
*** 34,38 ****
def testReturnType(self):
! "Test return type of gettimeout()"
self.sock.settimeout(1)
self.assertEqual(type(self.sock.gettimeout()), type(1.0))
--- 34,38 ----
def testReturnType(self):
! # Test return type of gettimeout()
self.sock.settimeout(1)
self.assertEqual(type(self.sock.gettimeout()), type(1.0))
***************
*** 42,46 ****
def testTypeCheck(self):
! "Test type checking by settimeout()"
self.sock.settimeout(0)
self.sock.settimeout(0L)
--- 42,46 ----
def testTypeCheck(self):
! # Test type checking by settimeout()
self.sock.settimeout(0)
self.sock.settimeout(0L)
***************
*** 55,59 ****
def testRangeCheck(self):
! "Test range checking by settimeout()"
self.assertRaises(ValueError, self.sock.settimeout, -1)
self.assertRaises(ValueError, self.sock.settimeout, -1L)
--- 55,59 ----
def testRangeCheck(self):
! # Test range checking by settimeout()
self.assertRaises(ValueError, self.sock.settimeout, -1)
self.assertRaises(ValueError, self.sock.settimeout, -1L)
***************
*** 61,65 ****
def testTimeoutThenBlocking(self):
! "Test settimeout() followed by setblocking()"
self.sock.settimeout(10)
self.sock.setblocking(1)
--- 61,65 ----
def testTimeoutThenBlocking(self):
! # Test settimeout() followed by setblocking()
self.sock.settimeout(10)
self.sock.setblocking(1)
***************
*** 75,79 ****
def testBlockingThenTimeout(self):
! "Test setblocking() followed by settimeout()"
self.sock.setblocking(0)
self.sock.settimeout(1)
--- 75,79 ----
def testBlockingThenTimeout(self):
! # Test setblocking() followed by settimeout()
self.sock.setblocking(0)
self.sock.settimeout(1)
***************
*** 99,103 ****
def testConnectTimeout(self):
! "Test connect() timeout"
_timeout = 0.02
self.sock.settimeout(_timeout)
--- 99,103 ----
def testConnectTimeout(self):
! # Test connect() timeout
_timeout = 0.02
self.sock.settimeout(_timeout)
***************
*** 114,118 ****
def testRecvTimeout(self):
! "Test recv() timeout"
_timeout = 0.02
self.sock.connect(self.addr_remote)
--- 114,118 ----
def testRecvTimeout(self):
! # Test recv() timeout
_timeout = 0.02
self.sock.connect(self.addr_remote)
***************
*** 129,133 ****
def testAcceptTimeout(self):
! "Test accept() timeout"
_timeout = 2
self.sock.settimeout(_timeout)
--- 129,133 ----
def testAcceptTimeout(self):
! # Test accept() timeout
_timeout = 2
self.sock.settimeout(_timeout)
***************
*** 145,149 ****
def testRecvfromTimeout(self):
! "Test recvfrom() timeout"
_timeout = 2
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
--- 145,149 ----
def testRecvfromTimeout(self):
! # Test recvfrom() timeout
_timeout = 2
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
***************
*** 161,175 ****
def testSend(self):
! "Test send() timeout"
# couldn't figure out how to test it
pass
def testSendto(self):
! "Test sendto() timeout"
# couldn't figure out how to test it
pass
def testSendall(self):
! "Test sendall() timeout"
# couldn't figure out how to test it
pass
--- 161,175 ----
def testSend(self):
! # Test send() timeout
# couldn't figure out how to test it
pass
def testSendto(self):
! # Test sendto() timeout
# couldn't figure out how to test it
pass
def testSendall(self):
! # Test sendall() timeout
# couldn't figure out how to test it
pass