mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
related to ttk.
This commit is contained in:
parent
86cc5029dc
commit
3b331dd3ea
1 changed files with 7 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue