From: Terry Jan Reedy Date: Sat, 4 Jun 2016 02:28:05 +0000 (-0400) Subject: Issue 20567: Revise idle_test/README.txt and some tests to match new advice. X-Git-Tag: v3.6.0a2~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d7281d2bdf0bbea105d73a12555366f29d6830e;p=thirdparty%2FPython%2Fcpython.git Issue 20567: Revise idle_test/README.txt and some tests to match new advice. --- 3d7281d2bdf0bbea105d73a12555366f29d6830e diff --cc Lib/idlelib/idle_test/test_redirector.py index 998fd6528b6c,eeec3ea34b17..df2b6184c42f --- a/Lib/idlelib/idle_test/test_redirector.py +++ b/Lib/idlelib/idle_test/test_redirector.py @@@ -48,9 -48,9 +48,10 @@@ class WidgetRedirectorTest(unittest.Tes @classmethod def tearDownClass(cls): + cls.text.destroy() - cls.tk.destroy() - del cls.text, cls.tk + del cls.text + cls.root.destroy() + del cls.root def setUp(self): self.redir = WidgetRedirector(self.text) @@@ -114,9 -114,9 +115,8 @@@ # Ensure that called through redir .dispatch and not through # self.text.insert by having mock raise TclError. self.func.__init__(TclError()) - self.assertEqual(self.tk.call(self.text._w, 'insert', 'boo'), '') - + self.assertEqual(self.root.call(self.text._w, 'insert', 'boo'), '') - if __name__ == '__main__': unittest.main(verbosity=2)