diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-04 00:32:11 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-04 00:32:11 (GMT) |
| commit | 7247d67e87b0f0c50f1bcf0a134a82373606f40c (patch) | |
| tree | a50e4c9954a7a7309511baf0773af477802b2b3c /Lib/test/test_ttk_guionly.py | |
| parent | d892f77e8c8eb24ec8770ed3976094846effcbae (diff) | |
| download | cpython-7247d67e87b0f0c50f1bcf0a134a82373606f40c.zip cpython-7247d67e87b0f0c50f1bcf0a134a82373606f40c.tar.gz cpython-7247d67e87b0f0c50f1bcf0a134a82373606f40c.tar.bz2 | |
Merged revisions 87721 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87721 | antoine.pitrou | 2011-01-04 01:24:03 +0100 (mar., 04 janv. 2011) | 3 lines
Issue #10267: Fix refleak in test_ttk_guionly. Patch by Hirokazu Yamamoto.
........
Diffstat (limited to 'Lib/test/test_ttk_guionly.py')
| -rw-r--r-- | Lib/test/test_ttk_guionly.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_ttk_guionly.py b/Lib/test/test_ttk_guionly.py index f163364..60a57f0 100644 --- a/Lib/test/test_ttk_guionly.py +++ b/Lib/test/test_ttk_guionly.py @@ -29,8 +29,12 @@ def test_main(enable_gui=False): test_support.use_resources.append('gui') with test_support.DirsOnSysPath(lib_tk_test): - test_support.run_unittest( - *runtktests.get_tests(text=False, packages=['test_ttk'])) + from test_ttk.support import get_tk_root + try: + test_support.run_unittest( + *runtktests.get_tests(text=False, packages=['test_ttk'])) + finally: + get_tk_root().destroy() if __name__ == '__main__': test_main(enable_gui=True) |
