]> granicus.if.org Git - python/commitdiff
Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.
authorNed Deily <nad@acm.org>
Tue, 5 Jul 2011 21:16:03 +0000 (14:16 -0700)
committerNed Deily <nad@acm.org>
Tue, 5 Jul 2011 21:16:03 +0000 (14:16 -0700)
Lib/lib-tk/test/runtktests.py

index 19769adac72a72c99c9a978c06b5f616721c3099..96cb31d14af3401cc99f6bd15c7c26f103d95655 100644 (file)
@@ -25,6 +25,20 @@ def check_tk_availability():
         return
 
     if sys.platform == 'darwin':
+
+        # ** temporary test code for issue8716 **
+        try:
+            import MacOS
+            wma = MacOS.WMAvailable()
+            print >> test.test_support.get_original_stdout(), \
+                '\tcheck_tk_availability -- WMAvailable returned %r' % wma
+        except ImportError:
+            print >> test.test_support.get_original_stdout(), \
+                '\tcheck_tk_availability -- could not import MacOS'
+        if not wma:
+            raise unittest.SkipTest("Window manager is not available")
+        # ** end of temporary test code for issue8716 **
+
         # The Aqua Tk implementations on OS X can abort the process if
         # being called in an environment where a window server connection
         # cannot be made, for instance when invoked by a buildbot or ssh