Pregnancy tests determine the presence in a woman's urine of a hormone (beta-hCG= beta chorionic gonadotropin unit) which is produced when pregnancy occurs. A positive test means that this hormone is present in the woman's urine and therefore a pregnancy.
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 being released during ovulation, as the egg is released during 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.
Suggested for you: Pregnancy Symptoms but Negative Test, What Else Could It Be?.