# HG changeset patch # User Matt Harbison # Date 1538200955 14400 # Node ID 803b7569c9eab3d98b952878777e5dae19451658 # Parent 8d6ab33a61b2763be3ff273af829f6fd2bac9e13 py3: suppress the output from .write() calls in the remaining tests diff -r 8d6ab33a61b2 -r 803b7569c9ea tests/test-casefolding.t --- a/tests/test-casefolding.t Fri Sep 28 23:17:06 2018 -0400 +++ b/tests/test-casefolding.t Sat Sep 29 02:02:35 2018 -0400 @@ -248,7 +248,7 @@ 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 -r 8d6ab33a61b2 -r 803b7569c9ea tests/test-hgweb-json.t --- a/tests/test-hgweb-json.t Fri Sep 28 23:17:06 2018 -0400 +++ b/tests/test-hgweb-json.t Sat Sep 29 02:02:35 2018 -0400 @@ -2201,7 +2201,7 @@ 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 -r 8d6ab33a61b2 -r 803b7569c9ea tests/test-keyword.t --- a/tests/test-keyword.t Fri Sep 28 23:17:06 2018 -0400 +++ b/tests/test-keyword.t Sat Sep 29 02:02:35 2018 -0400 @@ -214,7 +214,7 @@ 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 -r 8d6ab33a61b2 -r 803b7569c9ea tests/test-revlog.t --- a/tests/test-revlog.t Fri Sep 28 23:17:06 2018 -0400 +++ b/tests/test-revlog.t Sat Sep 29 02:02:35 2018 -0400 @@ -37,7 +37,7 @@ >>> 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