cpython: 18ce15f841cf (original) (raw)
Mercurial > cpython
changeset 71237:18ce15f841cf 2.7
Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure. [#8716]
Ned Deily nad@acm.org | |
---|---|
date | Tue, 05 Jul 2011 14:16:03 -0700 |
parents | 8a4c9c154b5d |
children | b5accd8adc3e |
files | Lib/lib-tk/test/runtktests.py |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-)[+] [-] Lib/lib-tk/test/runtktests.py 14 |
line wrap: on
line diff
--- 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 **[](#l1.8)
try:[](#l1.9)
import MacOS[](#l1.10)
wma = MacOS.WMAvailable()[](#l1.11)
print >> test.test_support.get_original_stdout(), \[](#l1.12)
'\tcheck_tk_availability -- WMAvailable returned %r' % wma[](#l1.13)
except ImportError:[](#l1.14)
print >> test.test_support.get_original_stdout(), \[](#l1.15)
'\tcheck_tk_availability -- could not import MacOS'[](#l1.16)
if not wma:[](#l1.17)
raise unittest.SkipTest("Window manager is not available")[](#l1.18)
# ** end of temporary test code for issue8716 **[](#l1.19)
+ # 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