def test_sensitivity_specificity_unused_pos_label():
 assert_warns_message(UserWarning, "Note that pos_label (set to 2) is ignored when average != 'binary' (got 'macro'). You may use labels=[pos_label] to specify a single positive class.", sensitivity_specificity_support, [1, 2, 1], [1, 2, 2], pos_label=2, average='macro')

def test_sensitivity_specificity_unused_pos_label ( ) : assert_warns_message ( UserWarning , "Note that pos_label (set to 2) is ignored when average != 'binary' (got 'macro'). You may use labels=[pos_label] to specify a single positive class." , sensitivity_specificity_support , [ 1 , 2 , 1 ] , [ 1 , 2 , 2 ] , pos_label = 2 , average = 'macro' )
check warning that pos_label unused when set to non-default value # but average != binary; even if data is binary .