From: terryjreedy Date: Tue, 13 Jun 2017 15:52:08 +0000 (-0400) Subject: [3.6]bpo-30642: Fix ref leak in idle_test.test_macosx (#2163) (#2165) X-Git-Tag: v3.6.2rc1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0efd493b6af24a6ae744e7e02f4b69c70e88f3d;p=thirdparty%2FPython%2Fcpython.git [3.6]bpo-30642: Fix ref leak in idle_test.test_macosx (#2163) (#2165) (cherry picked from commit 8323189ff1a19566f923c04b95e4d17fa57d1f56) --- diff --git a/Lib/idlelib/idle_test/test_macosx.py b/Lib/idlelib/idle_test/test_macosx.py index 775697b278d3..3d85f3ca7225 100644 --- a/Lib/idlelib/idle_test/test_macosx.py +++ b/Lib/idlelib/idle_test/test_macosx.py @@ -77,6 +77,10 @@ class SetupTest(unittest.TestCase): requires('gui') cls.root = tk.Tk() cls.root.withdraw() + def cmd(tkpath, func): + assert isinstance(tkpath, str) + assert isinstance(func, type(cmd)) + cls.root.createcommand = cmd @classmethod def tearDownClass(cls):