[Python-checkins] cpython (merge 3.3 -> default): Issue #20743: Fix a reference leak in test_tcl.
antoine.pitrou
python-checkins at python.org
Sun Feb 23 19:42:00 CET 2014
http://hg.python.org/cpython/rev/10b1f60a72fa
changeset: 89343:10b1f60a72fa
parent: 89341:fe8d416618e9
parent: 89342:38a06e411698
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Feb 23 19:41:51 2014 +0100
summary:
Issue #20743: Fix a reference leak in test_tcl.
files:
Lib/test/test_tcl.py | 1 +
Misc/NEWS | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -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 --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -17,6 +17,11 @@
- Issue #19748: On AIX, time.mktime() now raises an OverflowError for year
outsize range [1902; 2037].
+Tests
+-----
+
+- Issue #20743: Fix a reference leak in test_tcl.
+
What's New in Python 3.4.0 release candidate 2?
===============================================
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list