[Python-checkins] r87723 - in python/branches/release27-maint: Lib/test/test_ttk_guionly.py

antoine.pitrou python-checkins at python.org
Tue Jan 4 01:32:11 CET 2011


Author: antoine.pitrou
Date: Tue Jan  4 01:32:11 2011
New Revision: 87723

Log:
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.
........


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Lib/test/test_ttk_guionly.py

Modified: python/branches/release27-maint/Lib/test/test_ttk_guionly.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_ttk_guionly.py	(original)
+++ python/branches/release27-maint/Lib/test/test_ttk_guionly.py	Tue Jan  4 01:32:11 2011
@@ -29,8 +29,12 @@
             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)


More information about the Python-checkins mailing list