def get_parametrized_fixture_keys(item, scopenum):
 assert (scopenum < scopenum_function)
 try:
  cs = item.callspec
 except AttributeError:
  pass
 else:
  for (argname, param_index) in cs.indices.items():
   if (cs._arg2scopenum[argname] != scopenum):
    continue
   if (scopenum == 0):
    key = (argname, param_index)
   elif (scopenum == 1):
    key = (argname, param_index, item.fspath)
   elif (scopenum == 2):
    key = (argname, param_index, item.fspath, item.cls)
   (yield key)

def get_parametrized_fixture_keys ( item , scopenum ) : assert ( scopenum < scopenum_function ) try : cs = item . callspec except AttributeError : pass else : for ( argname , param_index ) in cs . indices . items ( ) : if ( cs . _arg2scopenum [ argname ] != scopenum ) : continue if ( scopenum == 0 ) : key = ( argname , param_index ) elif ( scopenum == 1 ) : key = ( argname , param_index , item . fspath ) elif ( scopenum == 2 ) : key = ( argname , param_index , item . fspath , item . cls ) ( yield key )
return list of keys for all parametrized arguments which match the specified scope .