changeset 39617:c8e371ee65a4

py3: add b'' prefixes in tests/test-diff-color.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D4590
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 15 Sep 2018 00:01:20 +0300
parents 5a2bf7f941fa
children 2f40bcebad30
files tests/test-diff-color.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)