Skip to content

Commit

Permalink
Close leaking listener socket in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Sep 18, 2011
1 parent 7dba811 commit 95b7073
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tornado/test/iostream_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 95b7073

Please sign in to comment.