<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/docutils.git/docutils/test/test_dependencies.py, branch master</title>
<subtitle>svn.code.sf.net: p/docutils/code
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/'/>
<entry>
<title>Fix IndexError when running individual test modules under Python &lt;3.9</title>
<updated>2022-11-26T23:15:13+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-26T23:15:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=a9d9d8d615eb0c9e0b291e29b41458ee54bb1fc7'/>
<id>a9d9d8d615eb0c9e0b291e29b41458ee54bb1fc7</id>
<content type='text'>
Up to Python 3.8, __file__ returns a relative path for the main script
specified on the command line. Use `Path.resolve()` to make it absolute before
calling `Path.parents`.
https://docs.python.org/3/whatsnew/3.9.html#other-language-changes

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9277 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Up to Python 3.8, __file__ returns a relative path for the main script
specified on the command line. Use `Path.resolve()` to make it absolute before
calling `Path.parents`.
https://docs.python.org/3/whatsnew/3.9.html#other-language-changes

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9277 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Make "record_dependecies" test independent of the working dir.</title>
<updated>2022-11-24T15:09:24+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-24T15:09:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=b8f17d13eef35fb496ac13033c3f31521a0841e9'/>
<id>b8f17d13eef35fb496ac13033c3f31521a0841e9</id>
<content type='text'>
In rST, the location of images and figures is specified as URI
and used literally. As a consequence, finding a corresponding
image file in the local filesystem depends on the current working
directory. The tests are designed to work if the cwd is the test root.
As only files that are actually found are written to the "dependencies",
we disable the tests for image file registry if cwd != test root.

Also, use "pathlib.Path" for simpler path manipulations.

Signed-off-by: milde &lt;milde@users.sf.net&gt;

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9267 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In rST, the location of images and figures is specified as URI
and used literally. As a consequence, finding a corresponding
image file in the local filesystem depends on the current working
directory. The tests are designed to work if the cwd is the test root.
As only files that are actually found are written to the "dependencies",
we disable the tests for image file registry if cwd != test root.

Also, use "pathlib.Path" for simpler path manipulations.

Signed-off-by: milde &lt;milde@users.sf.net&gt;

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9267 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix running of individual test (first batch).</title>
<updated>2022-11-24T15:08:12+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-24T15:08:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=527098bfe46ad8964f95a62c9690ba0a289e8e57'/>
<id>527098bfe46ad8964f95a62c9690ba0a289e8e57</id>
<content type='text'>
After test refactoring, test scripts failed with ImportError
unless started from the "test root" ``docutils/test/``.

Prepend the "docutils root" to the Python library path
so we import the local `docutils` and `test` packages,
ignoring an eventually installed Docutils package.

Set executable bit where this was missing.

Also:
  Use "pathlib" instead of "os.path" for self-documenting path manipulations.

  Remove duplicate ``import unittest`` statements.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9263 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After test refactoring, test scripts failed with ImportError
unless started from the "test root" ``docutils/test/``.

Prepend the "docutils root" to the Python library path
so we import the local `docutils` and `test` packages,
ignoring an eventually installed Docutils package.

Set executable bit where this was missing.

Also:
  Use "pathlib" instead of "os.path" for self-documenting path manipulations.

  Remove duplicate ``import unittest`` statements.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9263 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Make the tests agnostic to the working directory</title>
<updated>2022-11-10T16:25:32+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-10T16:25:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=7688249672e39bac02e0c9b23101f78bf7de96ce'/>
<id>7688249672e39bac02e0c9b23101f78bf7de96ce</id>
<content type='text'>
Previously, the test suite only worked when the current working
directory was ``docutils/test/`. With this change all relative paths
are calculated explicitly such that the working directory no longer
affects the tests, meaning a less fragile test environment and 
greater flexibility to use test runners other than ``alltests.py``.
This is part of the test suite refactoring project.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9236 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the test suite only worked when the current working
directory was ``docutils/test/`. With this change all relative paths
are calculated explicitly such that the working directory no longer
affects the tests, meaning a less fragile test environment and 
greater flexibility to use test runners other than ``alltests.py``.
This is part of the test suite refactoring project.

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9236 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the built-in ``open`` instead of ``FileInput``</title>
<updated>2022-11-03T16:11:41+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-11-03T16:11:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=a4ae049a3a9021d2082ac1e5ee2cf128d4d78524'/>
<id>a4ae049a3a9021d2082ac1e5ee2cf128d4d78524</id>
<content type='text'>
This simplifies logic to use the standard ``open`` function, and
simultaneously refactors usages to the context manager protocol
for more explicit resource management

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9208 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This simplifies logic to use the standard ``open`` function, and
simultaneously refactors usages to the context manager protocol
for more explicit resource management

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9208 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not import unused module</title>
<updated>2022-10-28T02:00:29+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-10-28T02:00:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=3420f970c4abe22d9dfed69548064162e403dce5'/>
<id>3420f970c4abe22d9dfed69548064162e403dce5</id>
<content type='text'>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9186 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9186 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove ``DocutilsTestSupport.DevNull``</title>
<updated>2022-10-28T01:57:27+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-10-28T01:57:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=a457ab5a5ee31d4eb923c8d4595f7f9235c5912f'/>
<id>a457ab5a5ee31d4eb923c8d4595f7f9235c5912f</id>
<content type='text'>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9185 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9185 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up ``record.txt`` after tests</title>
<updated>2022-10-21T12:55:40+00:00</updated>
<author>
<name>aa-turner</name>
<email>aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-10-21T12:55:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=312e366422834aeabe16a1c9e54de165e00b704b'/>
<id>312e366422834aeabe16a1c9e54de165e00b704b</id>
<content type='text'>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9159 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9159 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Unify naming of the "utf-8" codec.</title>
<updated>2022-06-13T12:05:08+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-06-13T12:05:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=b25fb05d3a0b360985b5179a0b412af4ffc5f330'/>
<id>b25fb05d3a0b360985b5179a0b412af4ffc5f330</id>
<content type='text'>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9068 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9068 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid too long lines.</title>
<updated>2022-03-05T23:28:32+00:00</updated>
<author>
<name>milde</name>
<email>milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04</email>
</author>
<published>2022-03-05T23:28:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/docutils.git/commit/?id=9d0a53389e9df5f921ec2d4134f64f85eb894664'/>
<id>9d0a53389e9df5f921ec2d4134f64f85eb894664</id>
<content type='text'>
flake8 rule E501: line too long (N &gt; 79 characters)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
flake8 rule E501: line too long (N &gt; 79 characters)

git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
</pre>
</div>
</content>
</entry>
</feed>
