changeset: 89344:00393de6919d branch: 2.7 parent: 89321:b514339e41ef 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 b514339e41ef -r 00393de6919d Lib/test/test_tcl.py --- a/Lib/test/test_tcl.py Sat Feb 22 01:32:50 2014 -0500 +++ b/Lib/test/test_tcl.py Sun Feb 23 19:39:06 2014 +0100 @@ -386,6 +386,7 @@ result.append(arg) return arg self.interp.createcommand('testfunc', testfunc) + self.addCleanup(self.interp.tk.deletecommand, 'testfunc') def check(value, expected, expected2=None, eq=self.assertEqual): if expected2 is None: expected2 = expected diff -r b514339e41ef -r 00393de6919d Misc/NEWS --- a/Misc/NEWS Sat Feb 22 01:32:50 2014 -0500 +++ b/Misc/NEWS Sun Feb 23 19:39:06 2014 +0100 @@ -249,6 +249,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. Initial patch by Gareth Rees.