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, addr = server.accept()
|
||||||
cs.settimeout(1)
|
cs.settimeout(1)
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
cs.recv(1024)
|
cs.recv(1024)
|
||||||
self.fail("Should have timed out")
|
self.fail("Should have timed out")
|
||||||
|
Reference in New Issue
Block a user