A pair of Connecticut politicians got into a real pissing match – by peeing in cups for a drug test.

Bridgeport City Councilman Ernest Newton and school board member Maria Pereira held what the Connecticut Post called “a modern twist on the classic political duel” after lobbing insults at each other in the comments section of local blog Only in Bridgeport.

The Democratic pols began attacking each other over a piece about budget figures that had been posted on the widely read site, where Pereira questioned the accuracy of numbers out of Mayor Joe Ganim’s administration.

“Please remember to take your meds,” Newton wrote to Pereira on April 13, adding that he did not believe the Board of Education’s 2019-20 budget figures.

“Ernie, I promise I will continue to take any and all prescribed medicine,” Pereira fired back. “In turn, please ensure you take anything you need that may have to be swallowed, snorted, inhaled, or injected.”

The steady stream continued as Pereira wrote Newton to “stop taking drugs. It is killing the few remaining brain cells you have left.”

Newton, whose political career was interrupted by a five-year prison stint after he pleaded guilty to a federal corruption charge, accused her of overdosing on “her meds.”

“Do we have a psycho on the Board of Education?” wrote Newton, who once struggled with a crack addiction, according to the Washington Post.

He also claimed Pereira had been placed in a psych ward after overdosing on medication – which she described as “wild accusations you will never be able to substantiate.”

“I’ll tell you what, Ernie,” she wrote. “I will gladly pay for both you and I to take a drug test with the understanding the results, whatever they may be, will be released” to Only in Bridgeport.

“Name the time and place,” Newton responded to the golden opportunity.

“I am asking that we take the test by 5:00 PM tomorrow so that it narrows any opportunity to take anything that would hinder the detection of substances in our urine,” Pereira wrote. “Agreed?”

“How about doing it today,” Newton replied. “You got all the mouth. I’m going today so that you will see how big of an a–hole you really are.”

According to his lab report, which was posted on Only in Bridgeport, Newton tested negative for marijuana, cocaine, amphetamine, methamphetamine, opiates, oxycodone, PCP, barbiturates, benzodiazepine and methadone.

He said he had been sober for 23 years, and had taken the test to make a big splash.

“This is a Board of Education member challenging a black elected official,” he said. “She wouldn’t have challenged a white person. She’s no different than Donald Trump. I did this to show how crazy she is.”

On Friday, Only in Bridgeport published pictures of Pereira’s results, showing that she also had tested negative for all 10 substances.