What happens when you vary the light his eyes are exposed to? Pupils open or close in response to the amount of light, & any pupils that stay "fixed" means you're dead.
Slit pupils minimize the excessive sunlight -because snakes don't have ears to hold their sunglasses on- while darkness causes their pupils to open to let in more light...so they can see better to hunt at night, for example.
Whether round (like humans & many snakes have- like Trans Pecos rat snakes) or slit pupils (like rosy boas & others have), they all function the same way in response to light.