if it's any comfort I've got to take an exam too, if it's any comfort (= if it makes you feel better to know that we share the same problem or bad luck).
drawcomfort from I know she goes out a lot at night, but I drawcomfort from the fact that she's always with friends.