]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18441: Comment out code that will not compile because the standard
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 28 Jul 2013 02:27:25 +0000 (22:27 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 28 Jul 2013 02:27:25 +0000 (22:27 -0400)
library has a package, lib-tk, that cannot be imported by normal means.
Lib/test/test_tk, etc, have special code to access this package.  I will not
bother with it unless the darwin check is needed before it gets moved to
test.(test-)support.py.

Lib/test/test_idle.py

index 77f6b1de5198934328d16116f80bee166505c758..177e3eb97395d352c89802a30905b098becbacd9 100644 (file)
@@ -12,13 +12,14 @@ idletest = import_module('idlelib.idle_test')
 if use_resources and 'gui' in use_resources:
     try:
         import sys
-        if sys.platform == 'darwin':
-            from lib-tk.test.runtktests import check_tk_availability
-            # tkinter.test.suppport in 3.x
-            try:
-                check_tk_availability()
-            except unittest.SkipTest:  
-                raise tk.TclError
+##        if sys.platform == 'darwin':
+##            from lib-tk.test.runtktests import check_tk_availability
+# see test/test_tk.py or test_ttk_guionly for how to import the above
+##            # tkinter.test.suppport in 3.x
+##            try:
+##                check_tk_availability()
+##            except unittest.SkipTest:  
+##                raise tk.TclError
         root = tk.Tk()
         root.destroy()
     except tk.TclError: