[3.6]bpo-30642: Fix ref leak in idle_test.test_macosx (#2163) (#2165)

(cherry picked from commit 8323189ff1)
This commit is contained in:
terryjreedy 2017-06-13 11:52:08 -04:00 committed by GitHub
parent 6fd0345995
commit b0efd493b6

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