on an obd2 car, the inspection is done through the ecu, which stores these cel codes, so even if the light is not on at that time, the code will more than likely be stored in the ecu, meaning that the car will fail inspection. if it was an obd1 car, it would probably pass.