Fix race condition in test suite.

This commit is contained in:
Aldo Cortesi
2013-12-08 15:26:30 +13:00
parent bae2b6ea36
commit 4840c6b3bf
2 changed files with 0 additions and 4 deletions

View File

@@ -354,7 +354,6 @@ class BaseHandler:
except (socket.error, SSL.Error):
# Socket probably already closed
pass
self.connection.close()

View File

@@ -80,7 +80,6 @@ class FinishFailHandler(tcp.BaseHandler):
v = self.rfile.readline()
self.wfile.write(v)
self.wfile.flush()
o = mock.MagicMock()
self.wfile.close()
self.rfile.close()
self.close = mock.MagicMock(side_effect=socket.error)
@@ -99,8 +98,6 @@ class TestFinishFail(test.ServerTestBase):
c.wfile.write("foo\n")
c.wfile.flush()
c.rfile.read(4)
h = self.last_handler
h.finish()
class TestDisconnect(test.ServerTestBase):