Show More
@@ -248,7 +248,7 b' We assume anyone running the tests on a ' | |||
|
248 | 248 | X will be using HFS+. If that's not true, this test will fail. |
|
249 | 249 | |
|
250 | 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 | 252 | $ hg status |
|
253 | 253 | M A |
|
254 | 254 |
@@ -2201,7 +2201,7 b" Commit message with Japanese Kanji 'Noh'" | |||
|
2201 | 2201 | Commit message with null character |
|
2202 | 2202 | |
|
2203 | 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 | 2205 | $ hg ci -l msg |
|
2206 | 2206 | $ rm msg |
|
2207 | 2207 |
@@ -214,7 +214,7 b' hg cat files and symlink, no expansion' | |||
|
214 | 214 | |
|
215 | 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 | 218 | $ hg -q commit -Am metasep i |
|
219 | 219 | $ hg status |
|
220 | 220 | >>> open("i", "wb").write("\1\nbar") |
@@ -37,7 +37,7 b' Test for CVE-2016-3630' | |||
|
37 | 37 | >>> open("a.i", "wb").write( |
|
38 | 38 | ... b"""eJxjYGZgZIAAYQYGxhgom+k/FMx8YKx9ZUaKSOyqo4cnuKb8mbqHV5cBCVTMWb1Cwqkhe4Gsg9AD |
|
39 | 39 | ... Joa3dYtcYYYBAQ8Qr4OqZAYRICPTSr5WKd/42rV36d+8/VmrNpv7NP1jQAXrQE4BqQUARngwVA==""" |
|
40 | ... .decode("base64").decode("zlib")) | |
|
40 | ... .decode("base64").decode("zlib")) and None | |
|
41 | 41 | |
|
42 | 42 |
$ |
|
43 | 43 | rev linkrev nodeid p1 p2 |
General Comments 0
You need to be logged in to leave comments.
Login now