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).
draw comfort from I know she goes out a lot at night, but I draw comfort from the fact that she's always with friends.