mirror of https://github.com/python/cpython
Fix ref leak in idle_test.test_macosx (#2163)
This commit is contained in:
parent
0d322181d9
commit
8323189ff1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue