Home
last modified time | relevance | path

Searched refs:_is_gui_available (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/support/
D__init__.py322 def _is_gui_available(): function
323 if hasattr(_is_gui_available, 'result'):
324 return _is_gui_available.result
391 _is_gui_available.reason = reason
392 _is_gui_available.result = not reason
394 return _is_gui_available.result
410 if resource == 'gui' and not _is_gui_available():
411 raise ResourceDenied(_is_gui_available.reason)
1468 if resource == 'gui' and not _is_gui_available():
1469 return unittest.skip(_is_gui_available.reason)
/external/python/cpython3/Lib/test/support/
D__init__.py464 def _is_gui_available(): function
465 if hasattr(_is_gui_available, 'result'):
466 return _is_gui_available.result
533 _is_gui_available.reason = reason
534 _is_gui_available.result = not reason
536 return _is_gui_available.result
552 if resource == 'gui' and not _is_gui_available():
553 raise ResourceDenied(_is_gui_available.reason)
1807 if resource == 'gui' and not _is_gui_available():
1808 return unittest.skip(_is_gui_available.reason)
/external/python/cpython2/Misc/NEWS.d/
D2.7.7rc1.rst1263 Backported _is_gui_available() in test.test_support to avoid hanging Windows