changeset: 89342:38a06e411698 branch: 3.3 parent: 89333:d8f48717b74e user: Antoine Pitrou date: Sun Feb 23 19:39:06 2014 +0100 files: Lib/test/test_tcl.py Misc/NEWS description: Issue #20743: Fix a reference leak in test_tcl. diff -r d8f48717b74e -r 38a06e411698 Lib/test/test_tcl.py --- a/Lib/test/test_tcl.py Sun Feb 09 13:11:53 2014 +0100 +++ b/Lib/test/test_tcl.py Sun Feb 23 19:39:06 2014 +0100 @@ -376,6 +376,7 @@ 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 -r d8f48717b74e -r 38a06e411698 Misc/NEWS --- a/Misc/NEWS Sun Feb 09 13:11:53 2014 +0100 +++ b/Misc/NEWS Sun Feb 23 19:39:06 2014 +0100 @@ -117,6 +117,8 @@ 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.