##// END OF EJS Templates
tests: normalize to bytes in test-install.t...
Gregory Szorc -
r41348:6e54caae default
parent child Browse files
Show More
@@ -161,6 +161,7 b' not found (this is intentionally using b'
161 > import subprocess
161 > import subprocess
162 > import sys
162 > import sys
163 > import xml.etree.ElementTree as ET
163 > import xml.etree.ElementTree as ET
164 > from mercurial import pycompat
164 >
165 >
165 > # MSYS mangles the path if it expands $TESTDIR
166 > # MSYS mangles the path if it expands $TESTDIR
166 > testdir = os.environ['TESTDIR']
167 > testdir = os.environ['TESTDIR']
@@ -177,7 +178,7 b' not found (this is intentionally using b'
177 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns)
178 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns)
178 >
179 >
179 > for f in files:
180 > for f in files:
180 > yield relpath + f.attrib['Name']
181 > yield pycompat.sysbytes(relpath + f.attrib['Name'])
181 >
182 >
182 > def hgdirectory(relpath):
183 > def hgdirectory(relpath):
183 > '''generator of tracked files, rooted at relpath'''
184 > '''generator of tracked files, rooted at relpath'''
@@ -204,11 +205,11 b' not found (this is intentionally using b'
204 >
205 >
205 > print('Not installed:')
206 > print('Not installed:')
206 > for f in sorted(set(tracked) - set(installed)):
207 > for f in sorted(set(tracked) - set(installed)):
207 > print(' %s' % f)
208 > print(' %s' % pycompat.sysstr(f))
208 >
209 >
209 > print('Not tracked:')
210 > print('Not tracked:')
210 > for f in sorted(set(installed) - set(tracked)):
211 > for f in sorted(set(installed) - set(tracked)):
211 > print(' %s' % f)
212 > print(' %s' % pycompat.sysstr(f))
212 > EOF
213 > EOF
213
214
214 $ ( testrepohgenv; "$PYTHON" wixxml.py help )
215 $ ( testrepohgenv; "$PYTHON" wixxml.py help )
General Comments 0
You need to be logged in to leave comments. Login now