cpython: 596e8855895e (original) (raw)
Mercurial > cpython
changeset 82679:596e8855895e 3.3
Issue # 10652: make tcl/tk tests run after __all__ test, patch by Zachary Ware. [#10652]
Terry Jan Reedy tjreedy@udel.edu | |
---|---|
date | Sat, 16 Mar 2013 02:51:18 -0400 |
parents | 45f6925906bf(current diff)b923234b60cb(diff) |
children | 44efcdf221f7 761b370f2cfd |
files | Misc/NEWS |
diffstat | 5 files changed, 15 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_tcl.py 3 Lib/test/test_tk.py 3 Lib/test/test_ttk_guionly.py 3 Lib/test/test_ttk_textonly.py 3 Misc/NEWS 3 |
line wrap: on
line diff
--- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -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
--- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py @@ -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()
--- a/Lib/test/test_ttk_guionly.py +++ b/Lib/test/test_ttk_guionly.py @@ -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()
--- a/Lib/test/test_ttk_textonly.py +++ b/Lib/test/test_ttk_textonly.py @@ -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():
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -654,6 +654,9 @@ Library Tests ----- +- Issue #10652: make tcl/tk tests run after all test, patch by