[PATCH] py3: fix a bytes/str mingling in test-install.t
Matt Harbison
mharbison72 at gmail.com
Sat Jan 26 03:45:01 UTC 2019
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1548473565 18000
# Fri Jan 25 22:32:45 2019 -0500
# Node ID 8b3b641e51f786a056c7478f45560e67356bb35b
# Parent ffdac0067a147f878ac45dc2c4b3b3e490865252
py3: fix a bytes/str mingling in test-install.t
diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -188,10 +188,9 @@ not found (this is intentionally using b
> stderr=subprocess.PIPE)
> output = proc.communicate()[0]
>
- > slash = '/'
> for line in output.splitlines():
> if os.name == 'nt':
- > yield line.replace(os.sep, slash)
+ > yield line.replace(pycompat.sysbytes(os.sep), b'/')
> else:
> yield line
>
More information about the Mercurial-devel
mailing list