Would you tell a dying family member you are expecting?

We just found out my grandmother has a couple months maybe less due to to cancer. We’re conflicted on telling her. We don’t want to upset her because she won’t be here. What would you do? We’re only 6 weeks and the odds of her being here at the end of the year isn’t very likely.