A judge has thrown out a challenge to the results of Arizona's problematic presidential primary at the close of two days of testimony.

Maricopa County Superior Court Judge David Gass ruled Tuesday that a Tucson man challenging the results hadn't proven fraud or shown that problems with the election would have changed the results.

He says throwing out the results would mean that more than 1 million people who voted in the March 22 primary would be disenfranchised.

Hillary Clinton won the Democratic primary over Bernie Sanders and Donald Trump beat John Kasich and Ted Cruz for the Republican win.

John Brakey sued, saying long lines caused by cutting the number of polling places in Maricopa County and registration problems statewide merited throwing out the results. Attorneys for the state and counties argued the problems didn't rise to the level of misconduct needed to discount the results.