summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterryjreedy <tjreedy@udel.edu>2017-06-13 15:52:08 (GMT)
committerGitHub <noreply@github.com>2017-06-13 15:52:08 (GMT)
commitb0efd493b6af24a6ae744e7e02f4b69c70e88f3d (patch)
treec5000ac3bfe815f4843b551bd811d592a25b0113
parent6fd03459957ee53941183212457bba19f977679f (diff)
downloadcpython-b0efd493b6af24a6ae744e7e02f4b69c70e88f3d.zip
cpython-b0efd493b6af24a6ae744e7e02f4b69c70e88f3d.tar.gz
cpython-b0efd493b6af24a6ae744e7e02f4b69c70e88f3d.tar.bz2
[3.6]bpo-30642: Fix ref leak in idle_test.test_macosx (#2163) (#2165)
(cherry picked from commit 8323189ff1a19566f923c04b95e4d17fa57d1f56)
-rw-r--r--Lib/idlelib/idle_test/test_macosx.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_macosx.py b/Lib/idlelib/idle_test/test_macosx.py
index 775697b..3d85f3c 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):