Commit 50aed8b2 authored by Denis Bilenko's avatar Denis Bilenko

greentest/test__socket.py: fix python2.5 compatibility

parent dd79befa
......@@ -196,7 +196,7 @@ class TestClosedSocket(greentest.TestCase):
try:
sock.send('a', timeout=1)
except socket.error, ex:
if ex.errno != 9:
if ex[0] != 9:
raise
......
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