tests/test-highlight.t
branchstable
changeset 43416 e7eb67eab53f
parent 41732 9d39671adadb
child 44119 5b38c2ab6ad3
--- a/tests/test-highlight.t	Mon Nov 04 20:46:19 2019 -0800
+++ b/tests/test-highlight.t	Mon Nov 04 20:57:31 2019 -0800
@@ -966,7 +966,9 @@
   $ cd ..
   $ hg init eucjp
   $ cd eucjp
-  $ "$PYTHON" -c 'print("\265\376")' >> eucjp.txt  # Japanese kanji "Kyo"
+  >>> with open('eucjp.txt', 'wb') as fh:
+  ...     # Japanese kanji "Kyo"
+  ...     fh.write(u'\265\376'.encode('utf-8')) and None
   $ hg ci -Ama
   adding eucjp.txt
   $ hgserveget () {