##// END OF EJS Templates
tests: open file in binary mode in test-upgrade-repo.t...
Matt Harbison -
r43465:86b26f20 default
parent child Browse files
Show More
@@ -452,9 +452,9 b' Upgrading a repository to generaldelta w'
452 >>> from __future__ import absolute_import, print_function
452 >>> from __future__ import absolute_import, print_function
453 >>> import random
453 >>> import random
454 >>> random.seed(0) # have a reproducible content
454 >>> random.seed(0) # have a reproducible content
455 >>> with open("f2", "w") as f:
455 >>> with open("f2", "wb") as f:
456 ... for i in range(100000):
456 ... for i in range(100000):
457 ... f.write("%d\n" % random.randint(1000000000, 9999999999)) and None
457 ... f.write(b"%d\n" % random.randint(1000000000, 9999999999)) and None
458 $ hg -q commit -A -m 'add f2'
458 $ hg -q commit -A -m 'add f2'
459
459
460 make sure we have a .d file
460 make sure we have a .d file
General Comments 0
You need to be logged in to leave comments. Login now