Many snakes have a stripe that is on their skin that goes through the eye. It is there to camoflague the eye and to break up the outline. They can sneak up on prey and avoid predators easier that way.

It is pigment, not the pupil. If you shine a light (not too bright!) in the snake's eye, you can see the pupil contract.

Red tail boas have a very prominent eye stripe