D3130: py3: suppress output from f.write() function class
This revision was automatically updated to reflect the committed changes. Closed by commit rHG22f19da5736e: py3: suppress output from f.write() function class (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3130?vs=7713&id=7728 REVISION DETAIL https://phab.mercurial-scm.org/D3130 AFFECTED FILES tests/test-diff-unified.t CHANGE DETAILS diff --git a/tests/test-diff-unified.t b/tests/test-diff-unified.t --- a/tests/test-diff-unified.t +++ b/tests/test-diff-unified.t @@ -394,33 +394,33 @@ $ cd longfunc >>> with open('a', 'wb') as f: - ... f.write(b'a' * 39 + b'bb' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 0 b\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 0 a with grave (single code point)\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 0 a with grave (composition)\n') - ... f.write(b' .\n' * 3) + ... f.write(b'a' * 39 + b'bb' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 0 b\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 0 a with grave (single code point)\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 0 a with grave (composition)\n') and None + ... f.write(b' .\n' * 3) and None $ hg ci -qAm0 >>> with open('a', 'wb') as f: - ... f.write(b'a' * 39 + b'bb' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 1 b\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 1 a with grave (single code point)\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 1 a with grave (composition)\n') - ... f.write(b' .\n' * 3) + ... f.write(b'a' * 39 + b'bb' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 1 b\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 1 a with grave (single code point)\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 1 a with grave (composition)\n') and None + ... f.write(b' .\n' * 3) and None $ hg ci -m1 $ hg diff -c1 --nodates --show-function To: pulkit, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D3130: py3: suppress output from f.write() function class
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We need to suppress them because the output is not present on Python 2 REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3130 AFFECTED FILES tests/test-diff-unified.t CHANGE DETAILS diff --git a/tests/test-diff-unified.t b/tests/test-diff-unified.t --- a/tests/test-diff-unified.t +++ b/tests/test-diff-unified.t @@ -394,33 +394,33 @@ $ cd longfunc >>> with open('a', 'wb') as f: - ... f.write(b'a' * 39 + b'bb' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 0 b\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 0 a with grave (single code point)\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 0 a with grave (composition)\n') - ... f.write(b' .\n' * 3) + ... f.write(b'a' * 39 + b'bb' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 0 b\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 0 a with grave (single code point)\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 0 a with grave (composition)\n') and None + ... f.write(b' .\n' * 3) and None $ hg ci -qAm0 >>> with open('a', 'wb') as f: - ... f.write(b'a' * 39 + b'bb' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 1 b\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 1 a with grave (single code point)\n') - ... f.write(b' .\n' * 3) - ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') - ... f.write(b' .\n' * 3) - ... f.write(b' 1 a with grave (composition)\n') - ... f.write(b' .\n' * 3) + ... f.write(b'a' * 39 + b'bb' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 1 b\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'\xc3\xa0' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 1 a with grave (single code point)\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b'a' * 39 + b'a\xcc\x80' + b'\n') and None + ... f.write(b' .\n' * 3) and None + ... f.write(b' 1 a with grave (composition)\n') and None + ... f.write(b' .\n' * 3) and None $ hg ci -m1 $ hg diff -c1 --nodates --show-function To: pulkit, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel