mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Fix ref leak in idle_test.test_macosx (#2163)
This commit is contained in:
parent
0d322181d9
commit
8323189ff1
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue