##// END OF EJS Templates
py3: adapt test-largefiles-wireproto.t to python3
Matt Harbison -
r40906:1aedbf3e default
parent child Browse files
Show More
@@ -305,6 +305,7 b' test-largefiles-cache.t'
305 test-largefiles-misc.t
305 test-largefiles-misc.t
306 test-largefiles-small-disk.t
306 test-largefiles-small-disk.t
307 test-largefiles-update.t
307 test-largefiles-update.t
308 test-largefiles-wireproto.t
308 test-largefiles.t
309 test-largefiles.t
309 test-lfconvert.t
310 test-lfconvert.t
310 test-lfs-bundle.t
311 test-lfs-bundle.t
@@ -240,10 +240,10 b' Clone over http, no largefiles pulled on'
240
240
241 Archive contains largefiles
241 Archive contains largefiles
242 >>> import os
242 >>> import os
243 >>> import urllib2
243 >>> from mercurial import urllibcompat
244 >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
244 >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
245 >>> with open('archive.zip', 'w') as f:
245 >>> with open('archive.zip', 'wb') as f:
246 ... f.write(urllib2.urlopen(u).read()) and None
246 ... f.write(urllibcompat.urlreq.urlopen(u).read()) and None
247 $ unzip -t archive.zip
247 $ unzip -t archive.zip
248 Archive: archive.zip
248 Archive: archive.zip
249 testing: empty-default/.hg_archival.txt*OK (glob)
249 testing: empty-default/.hg_archival.txt*OK (glob)
General Comments 0
You need to be logged in to leave comments. Login now