Issue #20743: Fix a reference leak in test_tcl.
This commit is contained in:
parent
82c25876ba
commit
aa73ea0408
|
@ -386,6 +386,7 @@ class TclTest(unittest.TestCase):
|
||||||
result.append(arg)
|
result.append(arg)
|
||||||
return arg
|
return arg
|
||||||
self.interp.createcommand('testfunc', testfunc)
|
self.interp.createcommand('testfunc', testfunc)
|
||||||
|
self.addCleanup(self.interp.tk.deletecommand, 'testfunc')
|
||||||
def check(value, expected, expected2=None, eq=self.assertEqual):
|
def check(value, expected, expected2=None, eq=self.assertEqual):
|
||||||
if expected2 is None:
|
if expected2 is None:
|
||||||
expected2 = expected
|
expected2 = expected
|
||||||
|
|
|
@ -249,6 +249,8 @@ IDLE
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #20743: Fix a reference leak in test_tcl.
|
||||||
|
|
||||||
- Issue #20510: Rewrote test_exit in test_sys to match existing comments,
|
- Issue #20510: Rewrote test_exit in test_sys to match existing comments,
|
||||||
use modern unittest features, and use helpers from test.script_helper
|
use modern unittest features, and use helpers from test.script_helper
|
||||||
instead of using subprocess directly. Initial patch by Gareth Rees.
|
instead of using subprocess directly. Initial patch by Gareth Rees.
|
||||||
|
|
Loading…
Reference in New Issue