tests/test-install.t
changeset 41386 baffda74891c
parent 41318 6e54caaed08d
child 41531 14983ac4a764
equal deleted inserted replaced
41385:ed99c7b52106 41386:baffda74891c
   186   >     args = ['hg', '--cwd', hgdir, 'files', relpath]
   186   >     args = ['hg', '--cwd', hgdir, 'files', relpath]
   187   >     proc = subprocess.Popen(args, stdout=subprocess.PIPE,
   187   >     proc = subprocess.Popen(args, stdout=subprocess.PIPE,
   188   >                             stderr=subprocess.PIPE)
   188   >                             stderr=subprocess.PIPE)
   189   >     output = proc.communicate()[0]
   189   >     output = proc.communicate()[0]
   190   > 
   190   > 
   191   >     slash = '/'
       
   192   >     for line in output.splitlines():
   191   >     for line in output.splitlines():
   193   >         if os.name == 'nt':
   192   >         if os.name == 'nt':
   194   >             yield line.replace(os.sep, slash)
   193   >             yield line.replace(pycompat.sysbytes(os.sep), b'/')
   195   >         else:
   194   >         else:
   196   >             yield line
   195   >             yield line
   197   > 
   196   > 
   198   > tracked = [f for f in hgdirectory(sys.argv[1])]
   197   > tracked = [f for f in hgdirectory(sys.argv[1])]
   199   > 
   198   >