WASHINGTON (AP) _ The principal of Wilson High School in Washington who made national headlines when he came out as gay this year is losing his job.

The Washington Post (http://wapo.st/1wjQ1GL ) reports Peter Cahall was notified his contract will not be renewed after six years at the school because of test scores. He notified parents and students of his impending departure Friday.

In a letter to the D.C. Council first published by the Washington City Paper, Cahall called his dismissal ``arbitrary and capricious.'' He says he wants D.C. Public Schools to be successful but that success may not be possible because of the administration's ``adversarial relationship'' with school leaders.

Principals work under one-year contracts, creating turnover each year.

Cahall noted gains in test scores. He also oversaw a $120 million school modernization.