summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-02-23 18:41:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-02-23 18:41:51 (GMT)
commit8a14ea46940b3000f8a56d246ae5c220845b759a (patch)
tree12314928d6d4c6f7d18737053b84ab9a4edbbc0b
parent27519673d3ca0d265d719233e6a43f1afa3fe2fc (diff)
parent220cc21cec3716ca94d63fea51d30ae84274d8cc (diff)
downloadcpython-8a14ea46940b3000f8a56d246ae5c220845b759a.zip
cpython-8a14ea46940b3000f8a56d246ae5c220845b759a.tar.gz
cpython-8a14ea46940b3000f8a56d246ae5c220845b759a.tar.bz2
Issue #20743: Fix a reference leak in test_tcl.
-rw-r--r--Lib/test/test_tcl.py1
-rw-r--r--Misc/NEWS5
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index c0c6341..d12fb22 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 d469f68..dafdb3f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -17,6 +17,11 @@ Library
- 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?
===============================================