Fix ref leak in idle_test.test_macosx (#2163)

This commit is contained in:
terryjreedy 2017-06-13 10:52:29 -04:00 committed by GitHub
parent 0d322181d9
commit 8323189ff1
1 changed files with 4 additions and 0 deletions

View File

@ -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):