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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Feb 20 08:33:54 EST 2018


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

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)



To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list