# HG changeset patch # User Yuya Nishihara # Date 2017-09-17 03:26:42 # Node ID cd022a11ec8370356b1a3e0e718e32579ae74204 # Parent 5ce32fe7df349503fb6be871cee472de71fc7ab1 py3: use bytes os.sep in doctest of pathutil.py diff --git a/mercurial/pathutil.py b/mercurial/pathutil.py --- a/mercurial/pathutil.py +++ b/mercurial/pathutil.py @@ -203,9 +203,9 @@ def normasprefix(path): See also issue3033 for detail about need of this function. - >>> normasprefix(b'/foo/bar').replace(os.sep, b'/') + >>> normasprefix(b'/foo/bar').replace(pycompat.ossep, b'/') '/foo/bar/' - >>> normasprefix(b'/').replace(os.sep, b'/') + >>> normasprefix(b'/').replace(pycompat.ossep, b'/') '/' ''' d, p = os.path.splitdrive(path) diff --git a/tests/test-doctest.py b/tests/test-doctest.py --- a/tests/test-doctest.py +++ b/tests/test-doctest.py @@ -58,7 +58,7 @@ testmod('mercurial.match') testmod('mercurial.mdiff') testmod('mercurial.minirst') testmod('mercurial.patch') -testmod('mercurial.pathutil', py3=False) # py3: os.sep +testmod('mercurial.pathutil') testmod('mercurial.parser') testmod('mercurial.pycompat') testmod('mercurial.revsetlang')