Kaydet (Commit) 8323189f authored tarafından terryjreedy's avatar terryjreedy Kaydeden (comit) GitHub

Fix ref leak in idle_test.test_macosx (#2163)

üst 0d322181
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment