diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-02-23 19:39:06 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-02-23 19:39:06 +0100 |
commit | 220cc21cec3716ca94d63fea51d30ae84274d8cc (patch) | |
tree | 6769f311e34b8c42f2a6f607e9f868f434e353ea | |
parent | Issue #20571: skip test_readline() of test_codecs for Windows code page 65001. (diff) | |
download | cpython-220cc21cec3716ca94d63fea51d30ae84274d8cc.tar.gz cpython-220cc21cec3716ca94d63fea51d30ae84274d8cc.tar.bz2 cpython-220cc21cec3716ca94d63fea51d30ae84274d8cc.zip |
Issue #20743: Fix a reference leak in test_tcl.
-rw-r--r-- | Lib/test/test_tcl.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index dda0c7ac792..5226ee676e9 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -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) diff --git a/Misc/NEWS b/Misc/NEWS index 006f3bfce29..0bb54c5f889 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -117,6 +117,8 @@ IDLE Tests ----- +- Issue #20743: Fix a reference leak in test_tcl. + - Issue #20510: Rewrote test_exit in test_sys to match existing comments, use modern unittest features, and use helpers from test.script_helper instead of using subprocess directly. Patch by Gareth Rees. |