The iodoform test is positive for compounds containing a methyl ketone group ($CH_3-CO-$) or alcohols that can be oxidized to a methyl ketone. 3-pentanone ($CH_3CH_2COCH_2CH_3$) does not have a methyl group directly attached to the carbonyl carbon.