diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-11 20:09:26 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-11 20:09:26 +0000 |
| commit | a8310ec067a5acde88089da7621e659cab809a24 (patch) | |
| tree | 17da17620e9c8aad18cb224fc950e707bf24c1b2 /docutils/test/test_transforms | |
| parent | e8678d212921317a322745091689b6e005d19ac4 (diff) | |
| download | docutils-a8310ec067a5acde88089da7621e659cab809a24.tar.gz | |
Fix py38 SyntaxWarning: invalid escape sequence \
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8311 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
| -rwxr-xr-x | docutils/test/test_transforms/test_class.py | 2 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_contents.py | 44 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_doctitle.py | 16 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_hyperlinks.py | 38 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_peps.py | 2 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_sectnum.py | 50 | ||||
| -rw-r--r-- | docutils/test/test_transforms/test_smartquotes.py | 8 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_substitutions.py | 4 | ||||
| -rwxr-xr-x | docutils/test/test_transforms/test_transitions.py | 16 |
9 files changed, 90 insertions, 90 deletions
diff --git a/docutils/test/test_transforms/test_class.py b/docutils/test/test_transforms/test_class.py index f31829a52..998ee7c0e 100755 --- a/docutils/test/test_transforms/test_class.py +++ b/docutils/test/test_transforms/test_class.py @@ -69,7 +69,7 @@ Paragraph """, """\ <document source="test data"> - <section classes="four" ids="section-title" names="section\ title"> + <section classes="four" ids="section-title" names="section\\ title"> <title> Section Title <paragraph> diff --git a/docutils/test/test_transforms/test_contents.py b/docutils/test/test_transforms/test_contents.py index 42620ab55..f51b172ab 100755 --- a/docutils/test/test_transforms/test_contents.py +++ b/docutils/test/test_transforms/test_contents.py @@ -68,26 +68,26 @@ Paragraph 4. <paragraph> <reference ids="id4" refid="title-4"> Title 4 - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title refid="id1"> Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title> <reference name="Title" refname="title"> Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title refid="id3"> <target ids="title" names="title"> Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title refid="id4"> Title 4 <paragraph> @@ -106,7 +106,7 @@ Paragraph 2. """, """\ <document source="test data"> - <topic classes="contents" ids="table-of-contents" names="table\ of\ contents"> + <topic classes="contents" ids="table-of-contents" names="table\\ of\\ contents"> <title> Table of Contents <bullet_list> @@ -119,12 +119,12 @@ Paragraph 2. <paragraph> <reference ids="id2" refid="title-2"> Title 2 - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title refid="id1"> Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title refid="id2"> Title 2 <paragraph> @@ -145,7 +145,7 @@ Paragraph 2. """, """\ <document source="test data"> - <topic classes="contents" ids="there-s-an-image-in-title-2" names="there's\ an\ image\ in\ title\ 2"> + <topic classes="contents" ids="there-s-an-image-in-title-2" names="there's\\ an\\ image\\ in\\ title\\ 2"> <title> There's an image in Title 2 <bullet_list> @@ -157,17 +157,17 @@ Paragraph 2. <paragraph> <reference ids="id2" refid="title-2"> Title 2 - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title refid="id1"> Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title refid="id2"> <image alt="Title 2" uri="title2.png"> <paragraph> Paragraph 2. - <substitution_definition names="Title\ 2"> + <substitution_definition names="Title\\ 2"> <image alt="Title 2" uri="title2.png"> """], # emacs cruft: " ["""\ @@ -209,22 +209,22 @@ Paragraph 4. <paragraph> <reference ids="id3" refid="title-4"> Title 4 - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title refid="id1"> Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title refid="id2"> Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title> Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title refid="id3"> Title 4 <paragraph> @@ -253,7 +253,7 @@ Paragraph 4. """, """\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title> Title 1 <topic classes="contents local" ids="contents" names="contents"> @@ -273,17 +273,17 @@ Paragraph 4. Title 4 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title refid="id1"> Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title refid="id2"> Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title refid="id3"> Title 4 <paragraph> @@ -394,7 +394,7 @@ Paragraph 3. """, """\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title> Title 1 <paragraph> @@ -413,12 +413,12 @@ Paragraph 3. <paragraph> <reference ids="id2" refid="title-3"> Title 3 - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title refid="id1"> Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title refid="id2"> Title 3 <paragraph> diff --git a/docutils/test/test_transforms/test_doctitle.py b/docutils/test/test_transforms/test_doctitle.py index c00113e63..2faad315a 100755 --- a/docutils/test/test_transforms/test_doctitle.py +++ b/docutils/test/test_transforms/test_doctitle.py @@ -133,7 +133,7 @@ The system_message should move after the document title (it was before the beginning of the section). """, """\ -<document ids="long-title" names="long\ title" source="test data" title="Long Title"> +<document ids="long-title" names="long\\ title" source="test data" title="Long Title"> <title> Long Title <system_message level="2" line="1" source="test data" type="WARNING"> @@ -164,19 +164,19 @@ Title 3 Paragraph 3. """, """\ -<document ids="title-1" names="title\ 1" source="test data" title="Title 1"> +<document ids="title-1" names="title\\ 1" source="test data" title="Title 1"> <title> Title 1 <comment xml:space="preserve"> Test multiple second-level titles. <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title> Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title> Title 3 <paragraph> @@ -198,7 +198,7 @@ substitution_definition. Title <substitution_definition names="foo"> bar - <target ids="invisible-target" names="invisible\ target"> + <target ids="invisible-target" names="invisible\\ target"> <paragraph> This title should be the document title despite the substitution_definition. @@ -225,15 +225,15 @@ Another Subtitle <document source="test data"> <paragraph> (Because of this paragraph, the following is not a doc title.) - <section ids="section-title" names="section\ title"> + <section ids="section-title" names="section\\ title"> <title> Section Title <subtitle ids="subtitle" names="subtitle"> Subtitle - <section ids="another-section" names="another\ section"> + <section ids="another-section" names="another\\ section"> <title> Another Section - <subtitle ids="another-subtitle" names="another\ subtitle"> + <subtitle ids="another-subtitle" names="another\\ subtitle"> Another Subtitle """], ["""\ diff --git a/docutils/test/test_transforms/test_hyperlinks.py b/docutils/test/test_transforms/test_hyperlinks.py index b6200f118..fb1627edf 100755 --- a/docutils/test/test_transforms/test_hyperlinks.py +++ b/docutils/test/test_transforms/test_hyperlinks.py @@ -319,7 +319,7 @@ Another reference to the same `embedded URI`_. An \n\ <reference name="embedded uri" refuri="http://direct"> embedded uri - <target ids="embedded-uri" names="embedded\ uri" refuri="http://direct"> + <target ids="embedded-uri" names="embedded\\ uri" refuri="http://direct"> . <paragraph> Another reference to the same \n\ @@ -351,7 +351,7 @@ Another reference to the same `embedded alias`_. An \n\ <reference name="embedded alias" refuri="ham.py"> embedded alias - <target names="embedded\ alias" refuri="ham.py"> + <target names="embedded\\ alias" refuri="ham.py"> . <paragraph> Another reference to the same \n\ @@ -383,7 +383,7 @@ An `embedded alias <alias_>`_ with unknown reference. An \n\ <problematic ids="id3" refid="id2"> `embedded alias <alias_>`_ - <target names="embedded\ alias" refname="alias"> + <target names="embedded\\ alias" refname="alias"> with unknown reference. <system_message ids="id1" level="3" line="1" source="test data" type="ERROR"> <paragraph> @@ -410,7 +410,7 @@ An embedded URI with trailing underline: ["""\ Hyperlinks with angle-bracketed text need escaping. -See `Element \<a>`_, `Element <b\>`_, and `Element <c>\ `_. +See `Element \\<a>`_, `Element <b\\>`_, and `Element <c>\\ `_. .. _`Element <a>`: .. _`Element <b>`: @@ -433,7 +433,7 @@ See `Element \<a>`_, `Element <b\>`_, and `Element <c>\ `_. . <target refid="element-a"> <target refid="element-b"> - <target ids="element-c element-b element-a" names="element\ <c> element\ <b> element\ <a>" refuri="elements.txt"> + <target ids="element-c element-b element-a" names="element\\ <c> element\\ <b> element\\ <a>" refuri="elements.txt"> """], ["""\ .. _target: @@ -482,7 +482,7 @@ By this `internal hyperlink`_ reference. """\ <document source="test data"> <target refid="internal-hyperlink"> - <paragraph ids="internal-hyperlink" names="internal\ hyperlink"> + <paragraph ids="internal-hyperlink" names="internal\\ hyperlink"> This paragraph referenced. <paragraph> By this \n\ @@ -505,7 +505,7 @@ The results of the transform are not visible at the XML level. <document source="test data"> <target refid="chained"> <target refid="internal-hyperlink"> - <paragraph ids="internal-hyperlink chained" names="internal\ hyperlink chained"> + <paragraph ids="internal-hyperlink chained" names="internal\\ hyperlink chained"> This paragraph referenced. <paragraph> By this \n\ @@ -594,7 +594,7 @@ b_ .. _a: .. _b: -a_\ b_ +a_\\ b_ """, """\ <document source="test data"> @@ -613,7 +613,7 @@ a_\ b_ """, """\ <document source="test data"> - <target ids="external-hyperlink" names="external\ hyperlink" refuri="http://uri"> + <target ids="external-hyperlink" names="external\\ hyperlink" refuri="http://uri"> <paragraph> <reference name="External hyperlink" refuri="http://uri"> External hyperlink @@ -625,8 +625,8 @@ a_\ b_ """, """\ <document source="test data"> - <target ids="external-hyperlink" names="external\ hyperlink" refuri="http://uri"> - <target ids="indirect-target" names="indirect\ target" refuri="http://uri"> + <target ids="external-hyperlink" names="external\\ hyperlink" refuri="http://uri"> + <target ids="indirect-target" names="indirect\\ target" refuri="http://uri"> <system_message level="1" line="2" source="test data" type="INFO"> <paragraph> Hyperlink target "indirect target" is not referenced. @@ -641,7 +641,7 @@ and a chained_ reference too. """\ <document source="test data"> <target refid="chained"> - <target ids="external-hyperlink chained" names="external\ hyperlink chained" refuri="http://uri"> + <target ids="external-hyperlink chained" names="external\\ hyperlink chained" refuri="http://uri"> <paragraph> <reference name="External hyperlink" refuri="http://uri"> External hyperlink @@ -659,8 +659,8 @@ and a chained_ reference too. """, """\ <document source="test data"> - <target ids="external-hyperlink" names="external\ hyperlink" refuri="http://uri"> - <target ids="indirect-hyperlink" names="indirect\ hyperlink" refuri="http://uri"> + <target ids="external-hyperlink" names="external\\ hyperlink" refuri="http://uri"> + <target ids="indirect-hyperlink" names="indirect\\ hyperlink" refuri="http://uri"> <paragraph> <reference name="Indirect hyperlink" refuri="http://uri"> Indirect hyperlink @@ -675,9 +675,9 @@ Chained_ `indirect hyperlink`_ reference. """, """\ <document source="test data"> - <target ids="external-hyperlink" names="external\ hyperlink" refuri="http://uri"> + <target ids="external-hyperlink" names="external\\ hyperlink" refuri="http://uri"> <target refuri="http://uri"> - <target ids="indirect-hyperlink chained" names="indirect\ hyperlink chained" refuri="http://uri"> + <target ids="indirect-hyperlink chained" names="indirect\\ hyperlink chained" refuri="http://uri"> <paragraph> <reference name="Chained" refuri="http://uri"> Chained @@ -825,7 +825,7 @@ Testing an `indirect reference to the table of contents`_. """, """\ <document source="test data"> - <topic classes="contents" ids="table-of-contents" names="table\ of\ contents"> + <topic classes="contents" ids="table-of-contents" names="table\\ of\\ contents"> <title> Table of Contents <bullet_list> @@ -833,7 +833,7 @@ Testing an `indirect reference to the table of contents`_. <paragraph> <reference ids="id1" refid="section"> Section - <target ids="indirect-reference-to-the-table-of-contents" names="indirect\ reference\ to\ the\ table\ of\ contents" refid="table-of-contents"> + <target ids="indirect-reference-to-the-table-of-contents" names="indirect\\ reference\\ to\\ the\\ table\\ of\\ contents" refid="table-of-contents"> <section ids="section" names="section"> <title refid="id1"> Section @@ -854,7 +854,7 @@ Let's reference it (`explicit target`_) to avoid an irrelevant error. """\ <document source="test data"> <target refid="explicit-target"> - <section ids="title explicit-target" names="title explicit\ target"> + <section ids="title explicit-target" names="title explicit\\ target"> <title> Title <paragraph> diff --git a/docutils/test/test_transforms/test_peps.py b/docutils/test/test_transforms/test_peps.py index 91a18269c..6bf3cd711 100755 --- a/docutils/test/test_transforms/test_peps.py +++ b/docutils/test/test_transforms/test_peps.py @@ -52,7 +52,7 @@ A "References" section should be generated. <section ids="id1"> <title> References - <footnote auto="1" ids="id2" names="TARGET_NOTE:\ id2"> + <footnote auto="1" ids="id2" names="TARGET_NOTE:\\ id2"> <paragraph> <reference refuri="http://www.example.org"> http://www.example.org diff --git a/docutils/test/test_transforms/test_sectnum.py b/docutils/test/test_transforms/test_sectnum.py index f95684581..c0f49a2b5 100755 --- a/docutils/test/test_transforms/test_sectnum.py +++ b/docutils/test/test_transforms/test_sectnum.py @@ -44,28 +44,28 @@ Paragraph 4. """, u"""\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title auto="1"> <generated classes="sectnum"> 1\u00a0\u00a0\u00a0 Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title auto="1"> <generated classes="sectnum"> 1.1\u00a0\u00a0\u00a0 Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title auto="1"> <generated classes="sectnum"> 1.1.1\u00a0\u00a0\u00a0 Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title auto="1"> <generated classes="sectnum"> 1.2\u00a0\u00a0\u00a0 @@ -82,7 +82,7 @@ Paragraph 1. """, u"""\ <document source="test data"> - <section ids="bold-title" names="bold\ title"> + <section ids="bold-title" names="bold\\ title"> <title auto="1"> <generated classes="sectnum"> 1\u00a0\u00a0\u00a0 @@ -112,26 +112,26 @@ Paragraph 4. """, u"""\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title auto="1"> <generated classes="sectnum"> 1\u00a0\u00a0\u00a0 Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title auto="1"> <generated classes="sectnum"> 1.1\u00a0\u00a0\u00a0 Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title> Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title auto="1"> <generated classes="sectnum"> 1.2\u00a0\u00a0\u00a0 @@ -189,26 +189,26 @@ u"""\ <generated classes="sectnum"> 1.2\u00a0\u00a0\u00a0 Title 4 - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title auto="1" refid="id1"> <generated classes="sectnum"> 1\u00a0\u00a0\u00a0 Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title auto="1" refid="id2"> <generated classes="sectnum"> 1.1\u00a0\u00a0\u00a0 Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title refid="id3"> Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title auto="1" refid="id4"> <generated classes="sectnum"> 1.2\u00a0\u00a0\u00a0 @@ -238,28 +238,28 @@ Paragraph 4. """, u"""\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title auto="1"> <generated classes="sectnum"> Arbitrary-1\u00a0\u00a0\u00a0 Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title auto="1"> <generated classes="sectnum"> Arbitrary-1.1\u00a0\u00a0\u00a0 Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title auto="1"> <generated classes="sectnum"> Arbitrary-1.1.1\u00a0\u00a0\u00a0 Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title auto="1"> <generated classes="sectnum"> Arbitrary-1.2\u00a0\u00a0\u00a0 @@ -289,28 +289,28 @@ Paragraph 4. """, u"""\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title auto="1"> <generated classes="sectnum"> 3\u00a0\u00a0\u00a0 Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title auto="1"> <generated classes="sectnum"> 3.1\u00a0\u00a0\u00a0 Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title auto="1"> <generated classes="sectnum"> 3.1.1\u00a0\u00a0\u00a0 Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title auto="1"> <generated classes="sectnum"> 3.2\u00a0\u00a0\u00a0 @@ -342,28 +342,28 @@ Paragraph 4. """, u"""\ <document source="test data"> - <section ids="title-1" names="title\ 1"> + <section ids="title-1" names="title\\ 1"> <title auto="1"> <generated classes="sectnum"> (5.9.3)\u00a0\u00a0\u00a0 Title 1 <paragraph> Paragraph 1. - <section ids="title-2" names="title\ 2"> + <section ids="title-2" names="title\\ 2"> <title auto="1"> <generated classes="sectnum"> (5.9.3.1)\u00a0\u00a0\u00a0 Title 2 <paragraph> Paragraph 2. - <section ids="title-3" names="title\ 3"> + <section ids="title-3" names="title\\ 3"> <title auto="1"> <generated classes="sectnum"> (5.9.3.1.1)\u00a0\u00a0\u00a0 Title 3 <paragraph> Paragraph 3. - <section ids="title-4" names="title\ 4"> + <section ids="title-4" names="title\\ 4"> <title auto="1"> <generated classes="sectnum"> (5.9.3.2)\u00a0\u00a0\u00a0 diff --git a/docutils/test/test_transforms/test_smartquotes.py b/docutils/test/test_transforms/test_smartquotes.py index 78158ef61..e65c5aa6f 100644 --- a/docutils/test/test_transforms/test_smartquotes.py +++ b/docutils/test/test_transforms/test_smartquotes.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# $Id: test_smartquotes.py 8190 2017-10-25 13:57:27Z milde $ +# $Id$ # # :Copyright: © 2011 Günter Milde. # :Maintainer: docutils-develop@lists.sourceforge.net @@ -120,7 +120,7 @@ em space "a" 'a', NBSP "a" 'a', ZWSP\u200B"a" and\u200B'a', ZWNJ\u200C"a" and\u200C'a', -escaped space\ "a" and\ 'a', +escaped space\\ "a" and\\ 'a', —"a",—'a' en dash–"a"–'a', @@ -154,7 +154,7 @@ Quotes and inline-elements: * Inside *"emphasized"* or other `inline "roles"` Do not drop characters from intra-word inline markup like -*re*\ ``Structured``\ *Text*. +*re*\\ ``Structured``\\ *Text*. """, u"""\ <document source="test data"> @@ -208,7 +208,7 @@ Do not convert context-character at inline-tag boundaries (``"string"``), (``'string'``), *\"betont\"*, \"*betont*". Do not drop characters from intra-word inline markup like - *re*\ ``Structured``\ *Text*. + *re*\\ ``Structured``\\ *Text*. """, u"""\ <document source="test data"> diff --git a/docutils/test/test_transforms/test_substitutions.py b/docutils/test/test_transforms/test_substitutions.py index a67c9bad4..22440705a 100755 --- a/docutils/test/test_transforms/test_substitutions.py +++ b/docutils/test/test_transforms/test_substitutions.py @@ -102,7 +102,7 @@ u"""\ ["""\ .. |l| unicode:: U+00AB .. left chevron .. |r| unicode:: U+00BB .. right chevron -.. |.| replace:: |l|\ ``.``\ |r| +.. |.| replace:: |l|\\ ``.``\\ |r| .. Delete either of the following lines, and there is no error. @@ -290,7 +290,7 @@ u"""\ . <substitution_definition names="copy"> \u00a9 - <substitution_definition names="BogusMegaCorp\ (TM)"> + <substitution_definition names="BogusMegaCorp\\ (TM)"> BogusMegaCorp \u2122 """], diff --git a/docutils/test/test_transforms/test_transitions.py b/docutils/test/test_transforms/test_transitions.py index 23605206a..ab458a3b5 100755 --- a/docutils/test/test_transforms/test_transitions.py +++ b/docutils/test/test_transforms/test_transitions.py @@ -40,16 +40,16 @@ Some text. """, """\ <document source="test data"> - <section ids="section-1" names="section\ 1"> + <section ids="section-1" names="section\\ 1"> <title> Section 1 - <section ids="subsection-1" names="subsection\ 1"> + <section ids="subsection-1" names="subsection\\ 1"> <title> Subsection 1 <paragraph> Some text. <transition> - <section ids="section-2" names="section\ 2"> + <section ids="section-2" names="section\\ 2"> <title> Section 2 <paragraph> @@ -70,7 +70,7 @@ Paragraph. <paragraph> A paragraph. <transition> - <section ids="section-1" names="section\ 1"> + <section ids="section-1" names="section\\ 1"> <title> Section 1 <paragraph> @@ -144,7 +144,7 @@ Section 2 <document source="test data"> <paragraph> Sections with transitions at beginning and end. - <section ids="section-1" names="section\ 1"> + <section ids="section-1" names="section\\ 1"> <title> Section 1 <system_message level="3" line="6" source="test data" type="ERROR"> @@ -154,7 +154,7 @@ Section 2 <paragraph> The next transition is legal: <transition> - <section ids="section-2" names="section\ 2"> + <section ids="section-2" names="section\\ 2"> <title> Section 2 <system_message level="3" line="15" source="test data" type="ERROR"> @@ -237,7 +237,7 @@ Some text. """, """\ <document source="test data"> - <section ids="section-1" names="section\ 1"> + <section ids="section-1" names="section\\ 1"> <title> Section 1 <system_message level="3" line="4" source="test data" type="ERROR"> @@ -252,7 +252,7 @@ Some text. <paragraph> At least one body element must separate transitions; adjacent transitions are not allowed. <transition> - <section ids="section-2" names="section\ 2"> + <section ids="section-2" names="section\\ 2"> <title> Section 2 <paragraph> |
