Pupils were lined up at the gates of a secondary school while their trousers were checked to see if they were the right shade of grey - with some failing the inspection and being sent home.
Kepier School in Houghton-le-Spring has defended the move, which it said was because it valued "consistency".