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__.py485 def _is_gui_available(): function
486 if hasattr(_is_gui_available, 'result'):
487 return _is_gui_available.result
556 _is_gui_available.reason = reason
557 _is_gui_available.result = not reason
559 return _is_gui_available.result
575 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)
/external/python/cpython2/Misc/NEWS.d/
D2.7.7rc1.rst1263 Backported _is_gui_available() in test.test_support to avoid hanging Windows