If I've been behind a slower car/bike for a while and they don't seem to be turning anywhere or letting me by after a while and I see a clear line...I just go for it.
I don't make a habit of passing on a double yellow. That's why I don't go on many group runs if I don't really know the people because almost everytime someone in the group starts doing this and then it's on and you either do it or get left behind. I used to not have a big problem with this BUT I'm trying to be wiser in my old age.