Mercurial > public > mercurial-scm > hg
diff tests/test-convert-mtn.t @ 39618:2f40bcebad30
py3: suppress the return value from .write() call
Differential Revision: https://phab.mercurial-scm.org/D4591
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sat, 15 Sep 2018 00:01:52 +0300 |
parents | 2b7318db0a89 |
children | 5abc47d4ca6b |
line wrap: on
line diff
--- a/tests/test-convert-mtn.t Sat Sep 15 00:01:20 2018 +0300 +++ b/tests/test-convert-mtn.t Sat Sep 15 00:01:52 2018 +0300 @@ -43,7 +43,7 @@ $ mkdir dir $ echo b > dir/b $ echo d > dir/d - $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b")' + $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b") and None' $ echo c > c $ mtn add a dir/b dir/d c bin mtn: adding 'a' to workspace manifest @@ -65,7 +65,7 @@ $ echo b >> dir/b $ mtn drop c mtn: dropping 'c' from workspace manifest - $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c")' + $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c") and None' $ mtn ci -m update1 mtn: beginning commit on branch 'com.selenic.test' mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff @@ -218,7 +218,7 @@ test large file support (> 32kB) >>> fp = open('large-file', 'wb') - >>> for x in range(10000): fp.write(b'%d\n' % x) + >>> for x in range(10000): fp.write(b'%d\n' % x) and None >>> fp.close() $ md5sum.py large-file 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file