def getfixturemarker(obj):
 try:
  return getattr(obj, '_pytestfixturefunction', None)
 except KeyboardInterrupt:
  raise
 except Exception:
  return None

def getfixturemarker ( obj ) : try : return getattr ( obj , '_pytestfixturefunction' , None ) except KeyboardInterrupt : raise except Exception : return None
return fixturemarker or none if it doesnt exist or raised exceptions .