Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be39e5 commit 220cc21Copy full SHA for 220cc21
2 files changed
Lib/test/test_tcl.py
@@ -376,6 +376,7 @@ def testfunc(arg):
376
result = arg
377
return arg
378
self.interp.createcommand('testfunc', testfunc)
379
+ self.addCleanup(self.interp.tk.deletecommand, 'testfunc')
380
def check(value, expected, eq=self.assertEqual):
381
r = self.interp.call('testfunc', value)
382
self.assertIsInstance(result, str)
Misc/NEWS
@@ -117,6 +117,8 @@ IDLE
117
Tests
118
-----
119
120
+- Issue #20743: Fix a reference leak in test_tcl.
121
+
122
- Issue #20510: Rewrote test_exit in test_sys to match existing comments,
123
use modern unittest features, and use helpers from test.script_helper
124
instead of using subprocess directly. Patch by Gareth Rees.
0 commit comments