def pytest_ignore_collect(path, config):
 if ('appengine/standard' in str(path)):
  if six.PY3:
   return True
  if ('GAE_SDK_PATH' not in os.environ):
   return True
 return False

def pytest_ignore_collect ( path , config ) : if ( 'appengine/standard' in str ( path ) ) : if six . PY3 : return True if ( 'GAE_SDK_PATH' not in os . environ ) : return True return False
ignore paths that would otherwise be collceted by the doctest plugin and lead to importerror due to missing dependencies .