##// END OF EJS Templates
py3: use bytes os.sep in doctest of pathutil.py
Yuya Nishihara -
r34255:cd022a11 default
parent child Browse files
Show More
@@ -203,9 +203,9 b' def normasprefix(path):'
203 203
204 204 See also issue3033 for detail about need of this function.
205 205
206 >>> normasprefix(b'/foo/bar').replace(os.sep, b'/')
206 >>> normasprefix(b'/foo/bar').replace(pycompat.ossep, b'/')
207 207 '/foo/bar/'
208 >>> normasprefix(b'/').replace(os.sep, b'/')
208 >>> normasprefix(b'/').replace(pycompat.ossep, b'/')
209 209 '/'
210 210 '''
211 211 d, p = os.path.splitdrive(path)
@@ -58,7 +58,7 b" testmod('mercurial.match')"
58 58 testmod('mercurial.mdiff')
59 59 testmod('mercurial.minirst')
60 60 testmod('mercurial.patch')
61 testmod('mercurial.pathutil', py3=False) # py3: os.sep
61 testmod('mercurial.pathutil')
62 62 testmod('mercurial.parser')
63 63 testmod('mercurial.pycompat')
64 64 testmod('mercurial.revsetlang')
General Comments 0
You need to be logged in to leave comments. Login now