]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue # 10652: make tcl/tk tests run after __all__ test, patch by Zachary Ware.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 16 Mar 2013 06:37:06 +0000 (02:37 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 16 Mar 2013 06:37:06 +0000 (02:37 -0400)
Lib/test/test_tcl.py
Lib/test/test_tk.py
Lib/test/test_ttk_guionly.py
Lib/test/test_ttk_textonly.py
Misc/NEWS

index d38c0b5bb8ad15d3296dd08cad0ac5e0f3791879..0cc21c9f2b9a930b4893f41fa0a0e827ae3874f4 100644 (file)
@@ -8,6 +8,9 @@ from test import support
 # 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
 
index f993c5358a83d348d7b9a645b2a9d0272f2e8210..7551a7f4709c13a061c63d2a0145504767c99c9e 100644 (file)
@@ -2,6 +2,9 @@ from test import support
 # 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()
index b8c1a4ca10077fa58e1a80bd09b42a5a7a40ef96..3a3459bdd2e1decbbcfd9abd9572574c6482adb2 100644 (file)
@@ -5,6 +5,9 @@ from test import support
 # 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()
index 566fc9d09a04a3cb6715c10b31b02bdf5cddd057..1cfeb15d2a0f4f106f7f8cdee23e549423fa1015 100644 (file)
@@ -4,6 +4,9 @@ from test import support
 # 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():
index cac3957fe7899f5ee1610bd22ebf33131ff9e087..ce7a9e42269c22f76d73f0534953d00e02b2ba70 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -964,6 +964,9 @@ Extension Modules
 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