Upvote:4
Since I do not have enough reputation to comment, I am writing my experience as an answer.
I think it depends on the immigration officer. I was in a similar situation when I visited France in June 2017. The French consulate granted me the visa but the immigration officer noticed that my USA visa (J1 visa) would be expiring in two months from the date of my entry in France. So the officer asked me my return flight ticket which I showed him, and I was allowed to enter France.