]> granicus.if.org Git - python/commitdiff
Fixing changes from the last merge.
authorGuilherme Polo <ggpolo@gmail.com>
Fri, 6 Feb 2009 23:04:44 +0000 (23:04 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Fri, 6 Feb 2009 23:04:44 +0000 (23:04 +0000)
Lib/test/test_tcl.py
Lib/tkinter/test/runtktests.py

index 4d92b268b8e631686a6b609a87181df03011b9af..fa20188b5f9f506a7f0736ec022c1c0a6e711d8e 100644 (file)
@@ -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__
 
 
index 3d9775b58f87faac9d16edf1f79120eb508afa8f..e21eca4c45e066ff9078921d436fbb3b5d9cac7f 100644 (file)
@@ -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