mirror of
https://github.com/python/cpython.git
synced 2025-10-13 02:13:03 +00:00
Issue #20743: Fix a reference leak in test_tcl.
This commit is contained in:
parent
1be39e5154
commit
220cc21cec
2 changed files with 3 additions and 0 deletions
|
@ -376,6 +376,7 @@ class TclTest(unittest.TestCase):
|
|||
result = arg
|
||||
return arg
|
||||
self.interp.createcommand('testfunc', testfunc)
|
||||
self.addCleanup(self.interp.tk.deletecommand, 'testfunc')
|
||||
def check(value, expected, eq=self.assertEqual):
|
||||
r = self.interp.call('testfunc', value)
|
||||
self.assertIsInstance(result, str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue