tests: use raw strings in test-help.t
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 14:14:25 -0800
changeset 41551 033a0f4b4a5f
parent 41550 7295279b9ea5
child 41552 99b4c6d73a72
tests: use raw strings in test-help.t This avoids SyntaxWarning on Python 3.8 due to invalid \ escapes. Differential Revision: https://phab.mercurial-scm.org/D5841
tests/test-help.t
--- a/tests/test-help.t	Mon Feb 04 14:10:10 2019 -0800
+++ b/tests/test-help.t	Mon Feb 04 14:14:25 2019 -0800
@@ -1674,7 +1674,7 @@
 Test omit indicating for help
 
   $ cat > addverboseitems.py <<EOF
-  > '''extension to test omit indicating.
+  > r'''extension to test omit indicating.
   > 
   > This paragraph is never omitted (for extension)
   > 
@@ -1687,7 +1687,7 @@
   > '''
   > from __future__ import absolute_import
   > from mercurial import commands, help
-  > testtopic = b"""This paragraph is never omitted (for topic).
+  > testtopic = br"""This paragraph is never omitted (for topic).
   > 
   > .. container:: verbose
   >