Searched refs:_is_gui_available (Results 1 – 3 of 3) sorted by relevance
322 def _is_gui_available(): function323 if hasattr(_is_gui_available, 'result'):324 return _is_gui_available.result391 _is_gui_available.reason = reason392 _is_gui_available.result = not reason394 return _is_gui_available.result410 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)
485 def _is_gui_available(): function486 if hasattr(_is_gui_available, 'result'):487 return _is_gui_available.result556 _is_gui_available.reason = reason557 _is_gui_available.result = not reason559 return _is_gui_available.result575 if resource == 'gui' and not _is_gui_available():576 raise ResourceDenied(_is_gui_available.reason)1704 if resource == 'gui' and not _is_gui_available():1705 return unittest.skip(_is_gui_available.reason)
1263 Backported _is_gui_available() in test.test_support to avoid hanging Windows