Legend says that at later stages they did actually check the manhood of the new pope.
They constructed a sort of seat (sedia stercoraria) with a hole in it. The new elected pope had to sit on it without underwear, after which the cardinals could check the sex of the pope, proclaiming: "Testiculos habet et bene pendentes" (use your imagination on the translation).