py3: use bytes os.sep in doctest of pathutil.py
authorYuya Nishihara <yuya@tcha.org>
Sun, 17 Sep 2017 12:26:42 +0900
changeset 34254 cd022a11ec83
parent 34253 5ce32fe7df34
child 34255 d6af8da4a3b8
py3: use bytes os.sep in doctest of pathutil.py
mercurial/pathutil.py
tests/test-doctest.py
--- a/mercurial/pathutil.py	Sun Sep 17 12:23:16 2017 +0900
+++ b/mercurial/pathutil.py	Sun Sep 17 12:26:42 2017 +0900
@@ -203,9 +203,9 @@
 
     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)
--- a/tests/test-doctest.py	Sun Sep 17 12:23:16 2017 +0900
+++ b/tests/test-doctest.py	Sun Sep 17 12:26:42 2017 +0900
@@ -58,7 +58,7 @@
 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')