Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a14ea4

Browse files
committed
Issue #20743: Fix a reference leak in test_tcl.
2 parents 2751967 + 220cc21 commit 8a14ea4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_tcl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ def testfunc(arg):
376376
result = arg
377377
return arg
378378
self.interp.createcommand('testfunc', testfunc)
379+
self.addCleanup(self.interp.tk.deletecommand, 'testfunc')
379380
def check(value, expected, eq=self.assertEqual):
380381
r = self.interp.call('testfunc', value)
381382
self.assertIsInstance(result, str)

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Library
1717
- Issue #19748: On AIX, time.mktime() now raises an OverflowError for year
1818
outsize range [1902; 2037].
1919

20+
Tests
21+
-----
22+
23+
- Issue #20743: Fix a reference leak in test_tcl.
24+
2025

2126
What's New in Python 3.4.0 release candidate 2?
2227
===============================================

0 commit comments

Comments
 (0)