changeset 34254:cd022a11ec83

py3: use bytes os.sep in doctest of pathutil.py
author Yuya Nishihara <yuya@tcha.org>
date Sun, 17 Sep 2017 12:26:42 +0900
parents 5ce32fe7df34
children d6af8da4a3b8
files mercurial/pathutil.py tests/test-doctest.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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')