##// END OF EJS Templates
py3: add b'' prefixes in test-mdiff.py...
Pulkit Goyal -
r36346:8d0b0b53 default
parent child Browse files
Show More
@@ -10,11 +10,11 b' from mercurial import ('
10 class splitnewlinesTests(unittest.TestCase):
10 class splitnewlinesTests(unittest.TestCase):
11
11
12 def test_splitnewlines(self):
12 def test_splitnewlines(self):
13 cases = {'a\nb\nc\n': ['a\n', 'b\n', 'c\n'],
13 cases = {b'a\nb\nc\n': [b'a\n', b'b\n', b'c\n'],
14 'a\nb\nc': ['a\n', 'b\n', 'c'],
14 b'a\nb\nc': [b'a\n', b'b\n', b'c'],
15 'a\nb\nc\n\n': ['a\n', 'b\n', 'c\n', '\n'],
15 b'a\nb\nc\n\n': [b'a\n', b'b\n', b'c\n', b'\n'],
16 '': [],
16 b'': [],
17 'abcabc': ['abcabc'],
17 b'abcabc': [b'abcabc'],
18 }
18 }
19 for inp, want in cases.items():
19 for inp, want in cases.items():
20 self.assertEqual(mdiff.splitnewlines(inp), want)
20 self.assertEqual(mdiff.splitnewlines(inp), want)
General Comments 0
You need to be logged in to leave comments. Login now