Mercurial > hg
changeset 36011:c02200b11c39
py3: replace file() with open() in test-clone.t
While I was here, I made sure we write things correctly in bytes mode.
Differential Revision: https://phab.mercurial-scm.org/D2110
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 17:30:21 +0530 |
parents | 46a54de96a54 |
children | 233fb0b91a35 |
files | tests/test-clone.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-clone.t Tue Feb 06 22:55:02 2018 +0900 +++ b/tests/test-clone.t Sun Feb 11 17:30:21 2018 +0530 @@ -10,7 +10,7 @@ Create a non-inlined filelog: - $ $PYTHON -c 'file("data1", "wb").write("".join("%s\n" % x for x in range(10000)))' + $ $PYTHON -c 'open("data1", "wb").write(b"".join(b"%d\n" % x for x in range(10000)))' $ for j in 0 1 2 3 4 5 6 7 8 9; do > cat data1 >> b > hg commit -m test