From: Antoine Pitrou Date: Fri, 30 Oct 2009 17:55:21 +0000 (+0000) Subject: Try to fix transient refleaks in test_asynchat. X-Git-Tag: v2.7a1~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=643e85df48c87f082b16ca9e4ac02856130fbdb3;p=thirdparty%2FPython%2Fcpython.git Try to fix transient refleaks in test_asynchat. --- diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py index 14528d880085..caa1117baa18 100644 --- a/Lib/test/test_asynchat.py +++ b/Lib/test/test_asynchat.py @@ -92,10 +92,10 @@ class TestAsynchat(unittest.TestCase): usepoll = False def setUp (self): - pass + self._threads = test_support.threading_setup() def tearDown (self): - pass + test_support.threading_cleanup(*self._threads) def line_terminator_check(self, term, server_chunk): event = threading.Event()