SF.net SVN: docutils:[9880 ] trunk/docutils/test/test _writers/test_html5_polyglo t_parts.py

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9880
          http://sourceforge.net/p/docutils/code/9880
Author:   milde
Date:     2024-08-09 13:37:52 +0000 (Fri, 09 Aug 2024)
Log Message:
-----------
Next try to fix Windows test failure because of image URI -> path conversion.

Do'nt use start "URI reference" with the absolute DATA_ROOT path, as on windows
it will contain a drive letter which is interpreted as "scheme" part.

See [bugs:#493].

Modified Paths:
--------------
    trunk/docutils/test/test_writers/test_html5_polyglot_parts.py

Modified: trunk/docutils/test/test_writers/test_html5_polyglot_parts.py
===================================================================
--- trunk/docutils/test/test_writers/test_html5_polyglot_parts.py	2024-08-09 09:01:06 UTC (rev 9879)
+++ trunk/docutils/test/test_writers/test_html5_polyglot_parts.py	2024-08-09 13:37:52 UTC (rev 9880)
@@ -721,7 +721,7 @@
 """,
 ],
 [f"""\
-.. image:: {DATA_ROOT}/circle-broken.svg
+.. image:: file://{DATA_ROOT}/circle-broken.svg
    :loading: embed
 """,
 f"""\
@@ -732,7 +732,7 @@
 
 <aside class="system-message">
 <p class="system-message-title">System Message: ERROR/3 (<span class="docutils literal">&lt;string&gt;</span>, line 1)</p>
-<p>Cannot parse SVG image &quot;{DATA_ROOT}/circle-broken.svg&quot;:
+<p>Cannot parse SVG image &quot;file://{DATA_ROOT}/circle-broken.svg&quot;:
   not well-formed (invalid token): line 3, column 48</p>
 </aside>
 """
@@ -838,7 +838,7 @@
 """,
 ],
 [f"""\
-.. image:: {DATA_ROOT}/circle-broken.svg
+.. image:: file://{DATA_ROOT}/circle-broken.svg
    :loading: embed
 """,
 """\

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.