diff options
author | terryjreedy <tjreedy@udel.edu> | 2017-06-13 14:52:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 14:52:29 (GMT) |
commit | 8323189ff1a19566f923c04b95e4d17fa57d1f56 (patch) | |
tree | f670a1a898bc9149a9a4028f75e961dfecd31ecc | |
parent | 0d322181d9018b25a5c28e62a0c193b4309aaa95 (diff) | |
download | cpython-8323189ff1a19566f923c04b95e4d17fa57d1f56.zip cpython-8323189ff1a19566f923c04b95e4d17fa57d1f56.tar.gz cpython-8323189ff1a19566f923c04b95e4d17fa57d1f56.tar.bz2 |
Fix ref leak in idle_test.test_macosx (#2163)
-rw-r--r-- | Lib/idlelib/idle_test/test_macosx.py | 4 |
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): |