Mercurial > hg
changeset 43195:86b26f20146d
tests: open file in binary mode in test-upgrade-repo.t
Otherwise the file sizes printed in the output diverge from other platforms.
Differential Revision: https://phab.mercurial-scm.org/D7081
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 13 Oct 2019 00:15:36 -0400 |
parents | 138ac8cbce60 |
children | 5f9b1250b82a |
files | tests/test-upgrade-repo.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-upgrade-repo.t Sat Oct 12 22:21:51 2019 -0400 +++ b/tests/test-upgrade-repo.t Sun Oct 13 00:15:36 2019 -0400 @@ -452,9 +452,9 @@ >>> from __future__ import absolute_import, print_function >>> import random >>> random.seed(0) # have a reproducible content - >>> with open("f2", "w") as f: + >>> with open("f2", "wb") as f: ... for i in range(100000): - ... f.write("%d\n" % random.randint(1000000000, 9999999999)) and None + ... f.write(b"%d\n" % random.randint(1000000000, 9999999999)) and None $ hg -q commit -A -m 'add f2' make sure we have a .d file