diff options
author | Guilherme Polo <ggpolo@gmail.com> | 2009-02-01 02:56:16 +0000 |
---|---|---|
committer | Guilherme Polo <ggpolo@gmail.com> | 2009-02-01 02:56:16 +0000 |
commit | 3b331dd3ea7492e363ad68cc49c4ee9a09a2ca79 (patch) | |
tree | 67af7aaf6bdd3ffe5214159f9a8d988fe2c1d7b9 /Lib/test | |
parent | 86cc5029dc7f0d1bfd43f4fc3b067360ffdceab9 (diff) | |
download | cpython-git-3b331dd3ea7492e363ad68cc49c4ee9a09a2ca79.tar.gz |
Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
related to ttk.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_tcl.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 26e294ce13..7690fe1025 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -4,9 +4,15 @@ import unittest import os import _tkinter from test import test_support -from Tkinter import Tcl +from Tkinter import Tk, Tcl from _tkinter import TclError +# Restore Tkinter.Tk._loadtk that may have been overridden by ttk. +# If this is not done then this test may fail for reasons related +# to ttk only (like failing to load the tile package). +from ttk import __loadtk__ +Tk._loadtk = __loadtk__ + class TkinterTest(unittest.TestCase): |