Comments
Patch
@@ -248,7 +248,7 @@ We assume anyone running the tests on a
X will be using HFS+. If that's not true, this test will fail.
$ rm A
- >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun')
+ >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun') and None
$ hg status
M A
@@ -2201,7 +2201,7 @@ Commit message with Japanese Kanji 'Noh'
Commit message with null character
$ echo foo >> da/foo
- >>> open('msg', 'wb').write('commit with null character: \0\n')
+ >>> open('msg', 'wb').write('commit with null character: \0\n') and None
$ hg ci -l msg
$ rm msg
@@ -214,7 +214,7 @@ hg cat files and symlink, no expansion
hg status of kw-ignored binary file starting with '\1\n'
- >>> open("i", "wb").write("\1\nfoo")
+ >>> open("i", "wb").write("\1\nfoo") and None
$ hg -q commit -Am metasep i
$ hg status
>>> open("i", "wb").write("\1\nbar")
@@ -37,7 +37,7 @@ Test for CVE-2016-3630
>>> open("a.i", "wb").write(
... b"""eJxjYGZgZIAAYQYGxhgom+k/FMx8YKx9ZUaKSOyqo4cnuKb8mbqHV5cBCVTMWb1Cwqkhe4Gsg9AD
... Joa3dYtcYYYBAQ8Qr4OqZAYRICPTSr5WKd/42rV36d+8/VmrNpv7NP1jQAXrQE4BqQUARngwVA=="""
- ... .decode("base64").decode("zlib"))
+ ... .decode("base64").decode("zlib")) and None
$ hg debugrevlogindex a.i
rev linkrev nodeid p1 p2