Many many reptile keepers keep their snakes in rooms/sheds/buildings without a lot of light source. Many have no windows and lights are only turned on when tending the snakes.
I would say, if your concerned about it, keep the door open. The light from the other snake will also provide enough of a cycle. As long as it's not constantly pitch black I wouldn't be concerned.