tests/test-diff-color.t
changeset 39618 2f40bcebad30
parent 39617 c8e371ee65a4
child 39707 5abc47d4ca6b
--- a/tests/test-diff-color.t	Sat Sep 15 00:01:20 2018 +0300
+++ b/tests/test-diff-color.t	Sat Sep 15 00:01:52 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(b'dd', b'dd \r'))
+  ...     f.write(data.replace(b'dd', b'dd \r')) and None
   $ hg diff --nodates
   \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc)
   \x1b[0;31;1m--- a/a\x1b[0m (esc)