[Python-checkins] cpython (2.7): Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.
ned.deily
python-checkins at python.org
Tue Jul 5 23:16:52 CEST 2011
http://hg.python.org/cpython/rev/18ce15f841cf
changeset: 71237:18ce15f841cf
branch: 2.7
parent: 71235:8a4c9c154b5d
user: Ned Deily <nad at acm.org>
date: Tue Jul 05 14:16:03 2011 -0700
summary:
Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.
files:
Lib/lib-tk/test/runtktests.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/Lib/lib-tk/test/runtktests.py b/Lib/lib-tk/test/runtktests.py
--- a/Lib/lib-tk/test/runtktests.py
+++ b/Lib/lib-tk/test/runtktests.py
@@ -25,6 +25,20 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list