TST: fix test that repr returns str
Merge pull request #6040 from dsm054/fix-test-that-repr-returns-str

TST: fix test that repr returns str