Possible bug in partial_ratio

Tests show what I believe to be the bug

For now I am reluctant in writing a patch as I don't fully understand what is the expected behavior for partial_ratio.