SF.net SVN: docutils:[9922 ] trunk/docutils/test/test _writers/test_html4css1.py

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9922
          http://sourceforge.net/p/docutils/code/9922
Author:   grubert
Date:     2024-09-10 08:01:52 +0000 (Tue, 10 Sep 2024)
Log Message:
-----------
FIX change hard coded uris to f-string expansions

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

Modified: trunk/docutils/test/test_writers/test_html4css1.py
===================================================================
--- trunk/docutils/test/test_writers/test_html4css1.py	2024-09-04 19:33:39 UTC (rev 9921)
+++ trunk/docutils/test/test_writers/test_html4css1.py	2024-09-10 08:01:52 UTC (rev 9922)
@@ -517,8 +517,8 @@
 .. image:: {DATA_ROOT.as_uri()}/circle-broken.svg
    :loading: embed
 """,
-"""\
-<object data="file:///usr/local/src/docutils-git-svn/docutils/test/data/circle-broken.svg" type="image/svg+xml">file:///usr/local/src/docutils-git-svn/docutils/test/data/circle-broken.svg</object>
+f"""\
+<object data="{DATA_ROOT.as_uri()}/circle-broken.svg" type="image/svg+xml">{DATA_ROOT.as_uri()}/circle-broken.svg</object>
 """
 ],
 [r"""Broken :math:`\sin \my`.
@@ -583,8 +583,8 @@
 .. image:: {DATA_ROOT.as_uri()}/circle-broken.svg
    :loading: embed
 """,
-"""\
-<object data="file:///usr/local/src/docutils-git-svn/docutils/test/data/circle-broken.svg" type="image/svg+xml">file:///usr/local/src/docutils-git-svn/docutils/test/data/circle-broken.svg</object>
+f"""\
+<object data="{DATA_ROOT.as_uri()}/circle-broken.svg" type="image/svg+xml">{DATA_ROOT.as_uri()}/circle-broken.svg</object>
 """],
 [r'Broken :math:`\sin \my`.',
 '<p>Broken <tt class="math">\\sin \\my</tt>.</p>\n'

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.