# HG changeset patch # User Matt Harbison # Date 2018-09-29 06:02:35 # Node ID 803b7569c9eab3d98b952878777e5dae19451658 # Parent 8d6ab33a61b2763be3ff273af829f6fd2bac9e13 py3: suppress the output from .write() calls in the remaining tests diff --git a/tests/test-casefolding.t b/tests/test-casefolding.t --- a/tests/test-casefolding.t +++ b/tests/test-casefolding.t @@ -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 diff --git a/tests/test-hgweb-json.t b/tests/test-hgweb-json.t --- a/tests/test-hgweb-json.t +++ b/tests/test-hgweb-json.t @@ -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 diff --git a/tests/test-keyword.t b/tests/test-keyword.t --- a/tests/test-keyword.t +++ b/tests/test-keyword.t @@ -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") diff --git a/tests/test-revlog.t b/tests/test-revlog.t --- a/tests/test-revlog.t +++ b/tests/test-revlog.t @@ -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