Hear it from the experts; income taxes can be discharged in bankruptcy. It depends upon the year in question and the filing date. If you owe income taxes and are contemplating bankruptcy, you should not file before you know if they qualify for discharge.
By not taking the right precautions, and filing for bankruptcy, you will ruin your credit and may still be left with taxes due. Holding off the filing and seeking the right experts, could make a big difference.