summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/test
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-07-05 21:16:03 (GMT)
committerNed Deily <nad@acm.org>2011-07-05 21:16:03 (GMT)
commit8c653e094b7deb9bb8a1366382e452dea73e4826 (patch)
treef6775895787b8e673b98b6bee839445f544a8273 /Lib/lib-tk/test
parentb78fed9ee6c74d1e0a6e30d3b73b4f44061e647f (diff)
downloadcpython-8c653e094b7deb9bb8a1366382e452dea73e4826.zip
cpython-8c653e094b7deb9bb8a1366382e452dea73e4826.tar.gz
cpython-8c653e094b7deb9bb8a1366382e452dea73e4826.tar.bz2
Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.
Diffstat (limited to 'Lib/lib-tk/test')
-rw-r--r--Lib/lib-tk/test/runtktests.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/lib-tk/test/runtktests.py b/Lib/lib-tk/test/runtktests.py
index 19769ad..96cb31d 100644
--- a/Lib/lib-tk/test/runtktests.py
+++ b/Lib/lib-tk/test/runtktests.py
@@ -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