From patchwork Tue Feb 20 13:33:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2354: py3: add b'' prefixes in test-mdiff.py From: phabricator X-Patchwork-Id: 28168 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 20 Feb 2018 13:33:54 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG8d0b0b533e09: py3: add b'' prefixes in test-mdiff.py (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2354?vs=5922&id=5932 REVISION DETAIL https://phab.mercurial-scm.org/D2354 AFFECTED FILES tests/test-mdiff.py CHANGE DETAILS To: pulkit, #hg-reviewers, yuja Cc: mercurial-devel diff --git a/tests/test-mdiff.py b/tests/test-mdiff.py --- a/tests/test-mdiff.py +++ b/tests/test-mdiff.py @@ -10,11 +10,11 @@ class splitnewlinesTests(unittest.TestCase): def test_splitnewlines(self): - cases = {'a\nb\nc\n': ['a\n', 'b\n', 'c\n'], - 'a\nb\nc': ['a\n', 'b\n', 'c'], - 'a\nb\nc\n\n': ['a\n', 'b\n', 'c\n', '\n'], - '': [], - 'abcabc': ['abcabc'], + cases = {b'a\nb\nc\n': [b'a\n', b'b\n', b'c\n'], + b'a\nb\nc': [b'a\n', b'b\n', b'c'], + b'a\nb\nc\n\n': [b'a\n', b'b\n', b'c\n', b'\n'], + b'': [], + b'abcabc': [b'abcabc'], } for inp, want in cases.items(): self.assertEqual(mdiff.splitnewlines(inp), want)