changeset 41386:baffda74891c

py3: fix a bytes/str mingling in test-install.t
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 25 Jan 2019 22:32:45 -0500
parents ed99c7b52106
children 947b81560583
files tests/test-install.t
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-install.t	Fri Jan 25 21:19:51 2019 -0500
+++ b/tests/test-install.t	Fri Jan 25 22:32:45 2019 -0500
@@ -188,10 +188,9 @@
   >                             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
   >