RIO DE JANEIRO — The World Anti-Doping Agency said Wednesday it has reinstated the laboratory that will carry out drug testing for the Rio de Janeiro Olympics, which start in just over two weeks.

The lab was shuttered last month for what WADA called "nonconformity with International Standard for Laboratories."

In a statement on Wednesday, WADA said the Rio laboratory "has successfully complied with the ISL's requirements for reinstatement and no further suspension is required."

The statement will be a relief for local organizers and the International Olympic Committee, which would have been forced to send thousands of samples abroad for testing.

The Rio Olympics have faced myriad problems: the Zika epidemic, soaring crime and security worries, slow ticket sales and severe water pollution in venues for sailing, rowing, canoeing, triathlon and distance swimming.

"Athletes can be confident that anti-doping sample analysis has been robust throughout the laboratory's suspension, and that it will also be during the Games," Olivier Niggli, director general of WADA, said in a statement.

He said the lab would be running "optimally" when the Olympics open on Aug. 5.

A statement from the Brazilian sports ministry, which oversees the Brazilian Doping Control Authority, said it received the news "with satisfaction" and said the laboratory was already up and running.

The statement said Brazilian officials had followed "closely WADA's review process the last few weeks."

___

Stephen Wade on Twitter: http://twitter.com/StephenWadeAP . His work can be found at http://bigstory.ap.org/content/stephen-wade