It is reasonable trying to avoid any wild snakes in case you don't know for sure if it is venom snake or not, but it is easy to ask the owner if it is a pet snake. Non-venom snakes of small size post no threat to humans. Even non-venom snakes of large size would not attack humans unless you really tried to provoke it.
I've read stories of soldiers in Southeast Asia liked to have anaconda in their temporary post of caves. Anaconda keeps other snakes away (actually eat them), especially venom snakes, and it would pretend to be a guard dog at the entrance. Although this guard "dog" doesn't do its job very well, and would only bluff. When an officer came to check on the soldiers, all he needed to do is to just keep walking and the snake would get out of the way lol.