Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0efd49

Browse files
authored
[3.6]bpo-30642: Fix ref leak in idle_test.test_macosx (#2163) (#2165)
(cherry picked from commit 8323189)
1 parent 6fd0345 commit b0efd49

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/idlelib/idle_test/test_macosx.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def setUpClass(cls):
7777
requires('gui')
7878
cls.root = tk.Tk()
7979
cls.root.withdraw()
80+
def cmd(tkpath, func):
81+
assert isinstance(tkpath, str)
82+
assert isinstance(func, type(cmd))
83+
cls.root.createcommand = cmd
8084

8185
@classmethod
8286
def tearDownClass(cls):

0 commit comments

Comments
 (0)