]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Silence altered execution state warnings from test_telnetlib involving threads.
authorBrett Cannon <brett@python.org>
Fri, 5 Aug 2011 05:37:55 +0000 (22:37 -0700)
committerBrett Cannon <brett@python.org>
Fri, 5 Aug 2011 05:37:55 +0000 (22:37 -0700)
Lib/test/test_telnetlib.py

index a78b938b86fb00bfe31da27b42b07acb51df971a..efd91c7ed2676571226d627f577a41f423fcefc3 100644 (file)
@@ -39,6 +39,7 @@ class GeneralTests(TestCase):
     def tearDown(self):
         self.evt.wait()
         self.thread.join()
+        del self.thread  # Clear out any dangling Thread objects.
 
     def testBasic(self):
         # connects