py3: add b'' prefixes in tests/test-diff-color.t
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 15 Sep 2018 00:01:20 +0300
changeset 39617 c8e371ee65a4
parent 39616 5a2bf7f941fa
child 39618 2f40bcebad30
py3: add b'' prefixes in tests/test-diff-color.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D4590
tests/test-diff-color.t
--- a/tests/test-diff-color.t	Fri Sep 14 23:59:41 2018 +0300
+++ b/tests/test-diff-color.t	Sat Sep 15 00:01:20 2018 +0300
@@ -57,7 +57,7 @@
   >>> with open('a', 'rb') as f:
   ...     data = f.read()
   >>> with open('a', 'wb') as f:
-  ...     f.write(data.replace('dd', 'dd \r'))
+  ...     f.write(data.replace(b'dd', b'dd \r'))
   $ hg diff --nodates
   \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc)
   \x1b[0;31;1m--- a/a\x1b[0m (esc)