Permalink
Browse files

Close leaking listener socket in tests

  • Loading branch information...
1 parent 7dba811 commit 95b707339a303f2f2958ea27e49275cb34ec7543 @bdarnell bdarnell committed Sep 18, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 tornado/test/iostream_test.py
@@ -30,6 +30,8 @@ def connect_callback():
client_stream.connect(('127.0.0.1', port),
callback=connect_callback)
self.wait(condition=lambda: all(streams))
+ self.io_loop.remove_handler(listener.fileno())
+ listener.close()
return streams
def test_read_zero_bytes(self):

0 comments on commit 95b7073

Please sign in to comment.