Pregnancy tests determine the presence of the hormone (beta-hCG= human beta chorionic gonadotropin) in the urine. This is produced when pregnancy occurs. A positive test means that this hormone is present in the urine and therefore the woman is pregnant.
Polycystic ovary syndrome (PCOS) is when the ovaries produce higher than normal amounts of androgens and this can interfere with the development and release of the egg. Sometimes, instead of eggs forming and maturing, cysts develop in the ovaries. Instead of the egg being released during ovulation, as it is in a normal menstrual cycle, the cysts grow and increase in size.
Only in the case of a cyst that produces hCG, which is very rare, the hormone would show in your urine and give a false-positive result with the pregnancy test.