posix: fix HFS+ normcase doctest to produce valid bytes literals in Python 3
We were previously getting lucky on Python 2.
--- a/mercurial/posix.py Fri Sep 15 22:08:25 2017 -0400
+++ b/mercurial/posix.py Fri Sep 15 19:43:02 2017 -0400
@@ -344,11 +344,11 @@
>>> normcase(b'UPPER')
'upper'
- >>> normcase(b'Caf\xc3\xa9')
+ >>> normcase(b'Caf\\xc3\\xa9')
'cafe\\xcc\\x81'
- >>> normcase(b'\xc3\x89')
+ >>> normcase(b'\\xc3\\x89')
'e\\xcc\\x81'
- >>> normcase(b'\xb8\xca\xc3\xca\xbe\xc8.JPG') # issue3918
+ >>> normcase(b'\\xb8\\xca\\xc3\\xca\\xbe\\xc8.JPG') # issue3918
'%b8%ca%c3\\xca\\xbe%c8.jpg'
'''