##// END OF EJS Templates
py3: suppress the output from .write() calls in the remaining tests
Matt Harbison -
r40242:803b7569 default
parent child Browse files
Show More
@@ -248,7 +248,7 b' We assume anyone running the tests on a '
248 X will be using HFS+. If that's not true, this test will fail.
248 X will be using HFS+. If that's not true, this test will fail.
249
249
250 $ rm A
250 $ rm A
251 >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun')
251 >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun') and None
252 $ hg status
252 $ hg status
253 M A
253 M A
254
254
@@ -2201,7 +2201,7 b" Commit message with Japanese Kanji 'Noh'"
2201 Commit message with null character
2201 Commit message with null character
2202
2202
2203 $ echo foo >> da/foo
2203 $ echo foo >> da/foo
2204 >>> open('msg', 'wb').write('commit with null character: \0\n')
2204 >>> open('msg', 'wb').write('commit with null character: \0\n') and None
2205 $ hg ci -l msg
2205 $ hg ci -l msg
2206 $ rm msg
2206 $ rm msg
2207
2207
@@ -214,7 +214,7 b' hg cat files and symlink, no expansion'
214
214
215 hg status of kw-ignored binary file starting with '\1\n'
215 hg status of kw-ignored binary file starting with '\1\n'
216
216
217 >>> open("i", "wb").write("\1\nfoo")
217 >>> open("i", "wb").write("\1\nfoo") and None
218 $ hg -q commit -Am metasep i
218 $ hg -q commit -Am metasep i
219 $ hg status
219 $ hg status
220 >>> open("i", "wb").write("\1\nbar")
220 >>> open("i", "wb").write("\1\nbar")
@@ -37,7 +37,7 b' Test for CVE-2016-3630'
37 >>> open("a.i", "wb").write(
37 >>> open("a.i", "wb").write(
38 ... b"""eJxjYGZgZIAAYQYGxhgom+k/FMx8YKx9ZUaKSOyqo4cnuKb8mbqHV5cBCVTMWb1Cwqkhe4Gsg9AD
38 ... b"""eJxjYGZgZIAAYQYGxhgom+k/FMx8YKx9ZUaKSOyqo4cnuKb8mbqHV5cBCVTMWb1Cwqkhe4Gsg9AD
39 ... Joa3dYtcYYYBAQ8Qr4OqZAYRICPTSr5WKd/42rV36d+8/VmrNpv7NP1jQAXrQE4BqQUARngwVA=="""
39 ... Joa3dYtcYYYBAQ8Qr4OqZAYRICPTSr5WKd/42rV36d+8/VmrNpv7NP1jQAXrQE4BqQUARngwVA=="""
40 ... .decode("base64").decode("zlib"))
40 ... .decode("base64").decode("zlib")) and None
41
41
42 $ hg debugrevlogindex a.i
42 $ hg debugrevlogindex a.i
43 rev linkrev nodeid p1 p2
43 rev linkrev nodeid p1 p2
General Comments 0
You need to be logged in to leave comments. Login now