Mercurial > public > mercurial-scm > hg
diff tests/test-fileset.t @ 38080:0a10f142299d
py3: suppress the output from .write() calls in few tests
Differential Revision: https://phab.mercurial-scm.org/D3604
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:43:13 +0530 |
parents | 2a258985ffeb |
children | 8fa2b5c85a46 |
line wrap: on
line diff
--- a/tests/test-fileset.t Sat May 19 18:42:18 2018 +0530 +++ b/tests/test-fileset.t Sat May 19 18:43:13 2018 +0530 @@ -180,7 +180,7 @@ Test files properties - >>> open('bin', 'wb').write(b'\0a') + >>> open('bin', 'wb').write(b'\0a') and None $ fileset 'binary()' $ fileset 'binary() and unknown()' bin @@ -219,8 +219,8 @@ $ hg --config ui.portablefilenames=ignore add con.xml #endif - >>> open('1k', 'wb').write(b' '*1024) - >>> open('2k', 'wb').write(b' '*2048) + >>> open('1k', 'wb').write(b' '*1024) and None + >>> open('2k', 'wb').write(b' '*2048) and None $ hg add 1k 2k $ fileset 'size("bar")' hg: parse error: couldn't parse size: bar @@ -391,9 +391,9 @@ b2 c1 - >>> open('dos', 'wb').write("dos\r\n") - >>> open('mixed', 'wb').write("dos\r\nunix\n") - >>> open('mac', 'wb').write("mac\r") + >>> open('dos', 'wb').write(b"dos\r\n") and None + >>> open('mixed', 'wb').write(b"dos\r\nunix\n") and None + >>> open('mac', 'wb').write(b"mac\r") and None $ hg add dos mixed mac (remove a1, to examine safety of 'eol' on removed files)