posix: fix HFS+ normcase doctest to produce valid bytes literals in Python 3
authorAugie Fackler <raf@durin42.com>
Fri, 15 Sep 2017 19:43:02 -0400
changeset 34199 90b0e1639fd4
parent 34198 402efa8421b8
child 34200 112f118ecb00
posix: fix HFS+ normcase doctest to produce valid bytes literals in Python 3 We were previously getting lucky on Python 2.
mercurial/posix.py
--- 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'
         '''