Patchwork D2354: py3: add b'' prefixes in test-mdiff.py

login
register
mail settings
Submitter phabricator
Date Feb. 20, 2018, 1:33 p.m.
Message ID <b4f8d424a5ab5cbc4f2a959bf7ab24ba@localhost.localdomain>
Download mbox | patch
Permalink /patch/28168/
State Not Applicable
Headers show

Comments

phabricator - Feb. 20, 2018, 1:33 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8d0b0b533e09: py3: add b&#039;&#039; 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

Patch

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)