Are you concerned that she wants to talk about the divorce? I think its perfectly ok to let her know that now is not a good time (while you are studying for a test) but then give her a time and date when you think you can talk.
If she just wants to talk about general things - I would just keep the tone pleasant and end the conversation first.