(original) (raw)

changeset: 82678:b923234b60cb branch: 3.2 parent: 82674:4e6cf15e55c1 user: Terry Jan Reedy tjreedy@udel.edu date: Sat Mar 16 02:37:06 2013 -0400 files: Lib/test/test_tcl.py Lib/test/test_tk.py Lib/test/test_ttk_guionly.py Lib/test/test_ttk_textonly.py Misc/NEWS description: Issue # 10652: make tcl/tk tests run after __all__ test, patch by Zachary Ware. diff -r 4e6cf15e55c1 -r b923234b60cb Lib/test/test_tcl.py --- a/Lib/test/test_tcl.py Fri Mar 15 20:38:15 2013 -0400 +++ b/Lib/test/test_tcl.py Sat Mar 16 02:37:06 2013 -0400 @@ -8,6 +8,9 @@ # Skip this test if the _tkinter module wasn't built. _tkinter = support.import_module('_tkinter') +# Make sure tkinter._fix runs to set up the environment +support.import_fresh_module('tkinter') + from tkinter import Tcl from _tkinter import TclError diff -r 4e6cf15e55c1 -r b923234b60cb Lib/test/test_tk.py --- a/Lib/test/test_tk.py Fri Mar 15 20:38:15 2013 -0400 +++ b/Lib/test/test_tk.py Sat Mar 16 02:37:06 2013 -0400 @@ -2,6 +2,9 @@ # Skip test if _tkinter wasn't built. support.import_module('_tkinter') +# Make sure tkinter._fix runs to set up the environment +support.import_fresh_module('tkinter') + # Skip test if tk cannot be initialized. from tkinter.test.support import check_tk_availability check_tk_availability() diff -r 4e6cf15e55c1 -r b923234b60cb Lib/test/test_ttk_guionly.py --- a/Lib/test/test_ttk_guionly.py Fri Mar 15 20:38:15 2013 -0400 +++ b/Lib/test/test_ttk_guionly.py Sat Mar 16 02:37:06 2013 -0400 @@ -5,6 +5,9 @@ # Skip this test if _tkinter wasn't built. support.import_module('_tkinter') +# Make sure tkinter._fix runs to set up the environment +support.import_fresh_module('tkinter') + # Skip test if tk cannot be initialized. from tkinter.test.support import check_tk_availability check_tk_availability() diff -r 4e6cf15e55c1 -r b923234b60cb Lib/test/test_ttk_textonly.py --- a/Lib/test/test_ttk_textonly.py Fri Mar 15 20:38:15 2013 -0400 +++ b/Lib/test/test_ttk_textonly.py Sat Mar 16 02:37:06 2013 -0400 @@ -4,6 +4,9 @@ # Skip this test if _tkinter does not exist. support.import_module('_tkinter') +# Make sure tkinter._fix runs to set up the environment +support.import_fresh_module('tkinter') + from tkinter.test import runtktests def test_main(): diff -r 4e6cf15e55c1 -r b923234b60cb Misc/NEWS --- a/Misc/NEWS Fri Mar 15 20:38:15 2013 -0400 +++ b/Misc/NEWS Sat Mar 16 02:37:06 2013 -0400 @@ -964,6 +964,9 @@ Tests ----- +- Issue # 10652: make tcl/tk tests run after __all__ test, patch by + Zachary Ware. + - Issue #11963: remove human verification from test_parser and test_subprocess. - Issue #11732: add a new suppress_crash_popup() context manager to test.support /tjreedy@udel.edu