From: Ben Darnell Date: Sun, 18 Sep 2011 05:00:00 +0000 (-0700) Subject: Close leaking listener socket in tests X-Git-Tag: v2.1.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95b707339a303f2f2958ea27e49275cb34ec7543;p=thirdparty%2Ftornado.git Close leaking listener socket in tests --- diff --git a/tornado/test/iostream_test.py b/tornado/test/iostream_test.py index 9ba557566..3567c8024 100644 --- a/tornado/test/iostream_test.py +++ b/tornado/test/iostream_test.py @@ -30,6 +30,8 @@ class TestIOStream(AsyncHTTPTestCase, LogTrapTestCase): 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):