Commit 6fee2622 authored by Jason Madden's avatar Jason Madden

Use a more specific error.

parent 1f6b31f7
...@@ -198,7 +198,7 @@ class TestTCP(greentest.TestCase): ...@@ -198,7 +198,7 @@ class TestTCP(greentest.TestCase):
client = self.create_connection() client = self.create_connection()
client.settimeout(0.1) client.settimeout(0.1)
fd = client.makefile(mode='rb') fd = client.makefile(mode='rb')
self.assertRaises(socket.error, fd.readline) self.assertRaises(socket.timeout, fd.readline)
client.close() client.close()
fd.close() fd.close()
......
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