try/except/finally is a 2.5 feature
This commit is contained in:
@@ -39,6 +39,7 @@ class TestSocketErrors(unittest.TestCase):
|
||||
|
||||
cs, addr = server.accept()
|
||||
cs.settimeout(1)
|
||||
try:
|
||||
try:
|
||||
cs.recv(1024)
|
||||
self.fail("Should have timed out")
|
||||
|
Reference in New Issue
Block a user