mirror of
https://github.com/python/cpython.git
synced 2025-11-08 13:42:22 +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')
|
requires('gui')
|
||||||
cls.root = tk.Tk()
|
cls.root = tk.Tk()
|
||||||
cls.root.withdraw()
|
cls.root.withdraw()
|
||||||
|
def cmd(tkpath, func):
|
||||||
|
assert isinstance(tkpath, str)
|
||||||
|
assert isinstance(func, type(cmd))
|
||||||
|
cls.root.createcommand = cmd
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue