Mercurial > hg-stable
changeset 33981:9a0f33f497cd
tests: update test-largefiles-wireproto to pass our import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 16:58:07 -0400 |
parents | 991134261057 |
children | bfafd189edd9 |
files | tests/test-largefiles-wireproto.t |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-largefiles-wireproto.t Tue Aug 22 16:57:37 2017 -0400 +++ b/tests/test-largefiles-wireproto.t Tue Aug 22 16:58:07 2017 -0400 @@ -226,7 +226,8 @@ added 1 changesets with 1 changes to 1 files Archive contains largefiles - >>> import urllib2, os + >>> import os + >>> import urllib2 >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2'] >>> with open('archive.zip', 'w') as f: ... f.write(urllib2.urlopen(u).read())