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)
464 def _is_gui_available(): function465 if hasattr(_is_gui_available, 'result'):466 return _is_gui_available.result533 _is_gui_available.reason = reason534 _is_gui_available.result = not reason536 return _is_gui_available.result552 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)
1263 Backported _is_gui_available() in test.test_support to avoid hanging Windows