Police are not identifying the Seneca Valley High School student whom they charged on Monday.
Jackson Township police say the boy got the urine from another student, who got it from his younger brother. Police say the younger boy did not question his brother when asked to provide the sample and wasn't aware the student used it for the test.
Police say school officials tested the student July 31 at the request of his parents.
Seneca Valley, about 30 miles north of Pittsburgh, became the first western Pennsylvania district to drug test some students randomly, beginning in the 2002-2003 school year.