Kaydet (Commit) 115ecb92 authored tarafından Brett Cannon's avatar Brett Cannon

Fix typo of exception name.

üst bb93f4bb
...@@ -55,7 +55,7 @@ def test_timeout(): ...@@ -55,7 +55,7 @@ def test_timeout():
for. If this message is seen often, test_timeout should be changed to for. If this message is seen often, test_timeout should be changed to
use a more reliable address.""" % (ADDR,) use a more reliable address.""" % (ADDR,)
return return
except socket.err, exc: # In case connection is refused. except socket.error, exc: # In case connection is refused.
if (isinstance(exc.message, tuple) and if (isinstance(exc.message, tuple) and
exc.message[0] == errno.ECONNREFUSED): exc.message[0] == errno.ECONNREFUSED):
raise test_support.TestSkipped("test socket connection refused") raise test_support.TestSkipped("test socket connection refused")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment