In 1960-61, a small group of female pilots went through many of the same medical tests as the Mercury astronauts and scored very well on them - in fact, better than some of the astronauts did.
Not until the space shuttle started flying did NASA concede that some astronauts didn't have to be fast-jet pilots. And at that point, sure enough, women started becoming astronauts.