The iodoform test is given by compounds containing $\ce{-(C=O)CH3}$ group or compounds which can be oxidized to such. $$\ce{ CH3CH(OH)CH2CH3}$$
Is a 2 degree alchohol and even though it were to be oxidized it would not contain a $\ce{-(C=O)CH3}$ group but according to a question asked by JEE in 1997 it as a matter of fact does give the test.
HOW?