BUG: raw_locales unreachable in util.testing.get_locales
Fixes #9744 

can you write a test for this?
 Sure.  I assume there should always be at least one locale correct?  Obviously I can't test for specific ones.
 thank you sir!
