py3: add b'' prefixes in tests/test-diff-color.t
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D4590
--- 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)