def _check_all_skipped(test):
 import doctest
 all_skipped = all((x.options.get(doctest.SKIP, False) for x in test.examples))
 if all_skipped:
  pytest.skip('all tests skipped by +SKIP option')

def _check_all_skipped ( test ) : import doctest all_skipped = all ( ( x . options . get ( doctest . SKIP , False ) for x in test . examples ) ) if all_skipped : pytest . skip ( 'all tests skipped by +SKIP option' )
raises pytest .