From b41bc91549fdcdb2d206271edd0cccabe56664f8 Mon Sep 17 00:00:00 2001 From: Guilherme Polo Date: Fri, 6 Feb 2009 23:04:44 +0000 Subject: [PATCH] Fixing changes from the last merge. --- Lib/test/test_tcl.py | 2 +- Lib/tkinter/test/runtktests.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 4d92b268b8..fa20188b5f 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -10,7 +10,7 @@ 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__ +from tkinter.ttk import __loadtk__ Tk._loadtk = __loadtk__ diff --git a/Lib/tkinter/test/runtktests.py b/Lib/tkinter/test/runtktests.py index 3d9775b58f..e21eca4c45 100644 --- a/Lib/tkinter/test/runtktests.py +++ b/Lib/tkinter/test/runtktests.py @@ -46,7 +46,8 @@ def get_tests_modules(basepath=this_dir_path, gui=True, packages=None): for name in filenames: try: yield importlib.import_module( - ".%s" % name[:-len(py_ext)], pkg_name) + ".%s.%s" % (pkg_name, name[:-len(py_ext)]), + "tkinter.test") except test.support.ResourceDenied: if gui: raise -- 2.40.0